[Gnucash-changes] r11941 - gnucash/trunk - Scott Oonk's for for x86_64 compile warnings.

David Hampton hampton at cvs.gnucash.org
Mon Nov 14 23:17:11 EST 2005


Author: hampton
Date: 2005-11-14 23:17:10 -0500 (Mon, 14 Nov 2005)
New Revision: 11941
Trac: http://svn.gnucash.org/trac/changeset/11941

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Scott Oonk's for for x86_64 compile warnings.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2005-11-15 03:48:08 UTC (rev 11940)
+++ gnucash/trunk/ChangeLog	2005-11-15 04:17:10 UTC (rev 11941)
@@ -1,5 +1,9 @@
 2005-11-14  David Hampton  <hampton at employees.org>
 
+	* src/core-utils/gnc-gkeyfile-utils.c:
+	* src/gnome-utils/gnc-main-window.c: Scott Oonk's for for x86_64
+	compile warnings.
+	
 	* src/gnome-utils/dialog-preferences.c:
 	* src/gnome-utils/preferences.glade:
 	* src/gnome/glade/sched-xact.glade: Andreas Köhler's patch to set

Modified: gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c
===================================================================
--- gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c	2005-11-15 03:48:08 UTC (rev 11940)
+++ gnucash/trunk/src/core-utils/gnc-gkeyfile-utils.c	2005-11-15 04:17:10 UTC (rev 11941)
@@ -122,10 +122,10 @@
     success = FALSE;
     if (error) {
       *error = g_error_new(G_FILE_ERROR, g_file_error_from_errno(errno), 
-			   "File %s truncated (provided %d, written %d)",
+			   "File %s truncated (provided %d, written %zd)",
 			   filename, length, (int) written);
     } else {
-      g_critical("File %s truncated (provided %d, written %d)",
+      g_critical("File %s truncated (provided %d, written %zd)",
 	      filename, length, (int) written);
     }
     /* Ignore any error */

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2005-11-15 03:48:08 UTC (rev 11940)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2005-11-15 04:17:10 UTC (rev 11941)
@@ -620,7 +620,7 @@
   /*  Debugging: dump a copy to stdout and the trace log */
   {
     gchar *file_data;
-    gint file_length;
+    gsize file_length;
     file_data = g_key_file_to_data(data.key_file, &file_length, NULL);
     DEBUG("=== File Data Read===\n%s\n=== File End ===\n", file_data);
     g_free(file_data);
@@ -820,7 +820,7 @@
 	/*  Debugging: dump a copy to the trace log */
 	{
 	  gchar *file_data;
-	  gint file_length;
+	  gsize file_length;
 	  file_data = g_key_file_to_data(data.key_file, &file_length, NULL);
 	  DEBUG("=== File Data Written===\n%s\n=== File End ===\n", file_data);
 	  g_free(file_data);



More information about the gnucash-changes mailing list