[gtk+] Avoid some compiler warnings



commit 41389ca98ccaf0b0356367d5377f2dc7699c217f
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 23 15:13:13 2017 +0000

    Avoid some compiler warnings

 modules/printbackends/file/gtkprintbackendfile.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/printbackends/file/gtkprintbackendfile.c 
b/modules/printbackends/file/gtkprintbackendfile.c
index 4f479fb..c584b19 100644
--- a/modules/printbackends/file/gtkprintbackendfile.c
+++ b/modules/printbackends/file/gtkprintbackendfile.c
@@ -299,7 +299,7 @@ _cairo_write (void                *closure,
   error = NULL;
 
   GTK_NOTE (PRINTING,
-            g_print ("FILE Backend: Writting %i byte chunk to temp file\n", length));
+            g_print ("FILE Backend: Writting %u byte chunk to temp file\n", length));
 
   while (length > 0) 
     {
@@ -321,7 +321,7 @@ _cairo_write (void                *closure,
        }    
 
       GTK_NOTE (PRINTING,
-                g_print ("FILE Backend: Wrote %i bytes to temp file\n", written));
+                g_print ("FILE Backend: Wrote %zd bytes to temp file\n", written));
       
       data += written;
       length -= written;
@@ -472,7 +472,7 @@ file_write (GIOChannel   *source,
     }
 
   GTK_NOTE (PRINTING,
-            g_print ("FILE Backend: Writting %i byte chunk to target file\n", bytes_read));
+            g_print ("FILE Backend: Writting %lu byte chunk to target file\n", bytes_read));
 
   return TRUE;
 }


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