[gimp] file-uri: use correct variable type



commit 9e771c3160a821fe2a7810429b3c818df954df53
Author: Mikael Magnusson <mikachu src gnome org>
Date:   Fri May 6 22:21:34 2011 +0200

    file-uri: use correct variable type
    
    uri-backend-libcurl.c:195: warning: call to '_curl_easy_getinfo_err_long'
    declared with attribute warning: curl_easy_getinfo expects a pointer to
    long for this info

 plug-ins/file-uri/uri-backend-libcurl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/file-uri/uri-backend-libcurl.c b/plug-ins/file-uri/uri-backend-libcurl.c
index 5632235..af291c2 100644
--- a/plug-ins/file-uri/uri-backend-libcurl.c
+++ b/plug-ins/file-uri/uri-backend-libcurl.c
@@ -152,7 +152,7 @@ uri_backend_load_image (const gchar  *uri,
   FILE      *out_file;
   CURL      *curl_handle;
   CURLcode   result;
-  gint       response_code;
+  glong      response_code;
 
   gimp_progress_init (_("Connecting to server"));
 
@@ -199,7 +199,7 @@ uri_backend_load_image (const gchar  *uri,
       fclose (out_file);
       g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
                    _("Opening '%s' for reading resulted in HTTP "
-                     "response code: %d"),
+                     "response code: %ld"),
                    uri, response_code);
       curl_easy_cleanup (curl_handle);
       return FALSE;



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