[gupnp/gupnp-1.0] win32: Fix some platform-specific warnings



commit 79fc439238741c7ee6d9350e7c9901ea72705f1b
Author: Jens Georg <mail jensge org>
Date:   Sun Nov 11 08:08:59 2018 +0100

    win32: Fix some platform-specific warnings

 libgupnp/gupnp-context.c | 2 +-
 libgupnp/guul.c          | 2 +-
 libgupnp/http-headers.c  | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgupnp/gupnp-context.c b/libgupnp/gupnp-context.c
index 641c59a..bc86bc4 100644
--- a/libgupnp/gupnp-context.c
+++ b/libgupnp/gupnp-context.c
@@ -933,7 +933,7 @@ host_path_handler (G_GNUC_UNUSED SoupServer        *server,
                    gpointer                         user_data)
 {
         char *local_path, *path_to_open;
-        struct stat st;
+        GStatBuf st;
         int status;
         GList *locales, *orig_locales;
         GMappedFile *mapped_file;
diff --git a/libgupnp/guul.c b/libgupnp/guul.c
index 420cf1c..73c7c7c 100644
--- a/libgupnp/guul.c
+++ b/libgupnp/guul.c
@@ -76,7 +76,7 @@ guul_get_uuid()
             unsigned char* uuidStr = NULL;
             stat = UuidToString (&uuid, &uuidStr);
             if (stat == RPC_S_OK) {
-                    ret = g_strdup (uuidStr);
+                    ret = g_strdup ((char *) uuidStr);
                     RpcStringFree (&uuidStr);
             }
     }
diff --git a/libgupnp/http-headers.c b/libgupnp/http-headers.c
index 5e1f4d7..ffaa36a 100644
--- a/libgupnp/http-headers.c
+++ b/libgupnp/http-headers.c
@@ -114,14 +114,14 @@ locale_from_http_language (char *lang)
 void
 http_request_set_accept_language (SoupMessage *message)
 {
-        char *locale, *lang;
-        int dash_index;
-        GString *tmp;
-
 #ifdef G_OS_WIN32
         /* TODO: Use GetSystemDefaultLangID or similar */
         return;
 #else
+        char *locale, *lang;
+        int dash_index;
+        GString *tmp;
+
 
         locale = setlocale (LC_MESSAGES, NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]