Fix David Reiser's compile problem on OSX with gcc-3.3.

* src/core-utils/gnc-gkeyfile-utils.c: cast the
	  printf so we don't warn when sizeof(ssize_t) !=
	  sizeof(int).  In this case the cast is safe because
	  we can only write an int-size of data.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11925 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2005-11-14 01:49:52 +00:00
parent 9e9ceb6320
commit 04eb0593b5
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2005-11-13 Derek Atkins <derek@ihtfp.com>
* src/core-utils/gnc-gkeyfile-utils.c: cast the
printf so we don't warn when sizeof(ssize_t) !=
sizeof(int). In this case the cast is safe because
we can only write an int-size of data.
2005-11-13 Neil Williams <linux@codehelp.co.uk>
* src/backend/file/sixtp.c : Remove deprecated

View File

@ -123,10 +123,10 @@ gnc_key_file_save_to_file (const gchar *filename,
if (error) {
*error = g_error_new(G_FILE_ERROR, g_file_error_from_errno(errno),
"File %s truncated (provided %d, written %d)",
filename, length, written);
filename, length, (int) written);
} else {
g_critical("File %s truncated (provided %d, written %d)",
filename, length, written);
filename, length, (int) written);
}
/* Ignore any error */
close(fd);