balsa r7973 - in trunk: . libbalsa



Author: PeterB
Date: Mon Sep 15 14:15:54 2008
New Revision: 7973
URL: http://svn.gnome.org/viewvc/balsa?rev=7973&view=rev

Log:
cast off_t and ssize_t to long in calls to g_print

Modified:
   trunk/ChangeLog
   trunk/libbalsa/mailbox_mbox.c

Modified: trunk/libbalsa/mailbox_mbox.c
==============================================================================
--- trunk/libbalsa/mailbox_mbox.c	(original)
+++ trunk/libbalsa/mailbox_mbox.c	Mon Sep 15 14:15:54 2008
@@ -259,8 +259,8 @@
 #if DEBUG_SEEK
     if (!retval) {
         buffer[nread] = 0;
-        g_print("%s at %ld failed: read %d, saw \"%s\"\n", __func__, offset,
-                nread, buffer);
+        g_print("%s at %ld failed: read %ld chars, saw \"%s\"\n", __func__,
+                (long) offset, (long) nread, buffer);
     }
 #endif
 
@@ -1042,14 +1042,14 @@
     g_print("%s %s looking where to start parsing.\n",
               __func__, mailbox->name);
     if (!lbm_mbox_stream_seek_to_message(mbox_stream, start)) {
-        g_print(" did not find a message at offset %ld\n", start);
+        g_print(" did not find a message at offset %ld\n", (long) start);
         --start;
         if (lbm_mbox_stream_seek_to_message(mbox_stream, start))
-            g_print(" found a message at offset %ld\n", start);
+            g_print(" found a message at offset %ld\n", (long) start);
         else
-            g_print(" did not find a message at offset %ld\n", start);
+            g_print(" did not find a message at offset %ld\n", (long) start);
     } else
-        g_print(" found a message at offset %ld\n", start);
+        g_print(" found a message at offset %ld\n", (long) start);
 #else
     if (!lbm_mbox_stream_seek_to_message(mbox_stream, start))
         /* Sometimes we seem to be off by 1: */



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