[svn] GnuPG - r5124 - branches/STABLE-BRANCH-1-4/util

svn author wk cvs at cvs.gnupg.org
Tue Aug 18 12:46:34 CEST 2009


Author: wk
Date: 2009-08-18 12:46:34 +0200 (Tue, 18 Aug 2009)
New Revision: 5124

Modified:
   branches/STABLE-BRANCH-1-4/util/ChangeLog
   branches/STABLE-BRANCH-1-4/util/iobuf.c
Log:
Fix compiler size warning for debug output


Modified: branches/STABLE-BRANCH-1-4/util/ChangeLog
===================================================================
--- branches/STABLE-BRANCH-1-4/util/ChangeLog	2009-08-18 10:16:07 UTC (rev 5123)
+++ branches/STABLE-BRANCH-1-4/util/ChangeLog	2009-08-18 10:46:34 UTC (rev 5124)
@@ -1,5 +1,8 @@
 2009-08-18  Werner Koch  <wk at g10code.com>
 
+	* iobuf.c (fd_cache_close): Change debug printf format assuming
+	that FILEP_OR_FD is today always an int.
+
 	* miscutil.c (print_string2): Loose check for control characters
 	to better cope with utf-8.  The range 0x80..0x9f is nowadays not
 	anymore accidently used for control charaters.  Fixes bug#1103.

Modified: branches/STABLE-BRANCH-1-4/util/iobuf.c
===================================================================
--- branches/STABLE-BRANCH-1-4/util/iobuf.c	2009-08-18 10:16:07 UTC (rev 5123)
+++ branches/STABLE-BRANCH-1-4/util/iobuf.c	2009-08-18 10:46:34 UTC (rev 5124)
@@ -319,7 +319,7 @@
         close(fp);
 #endif
         if( DBG_IOBUF )
-            log_debug ("fd_cache_close (%p) real\n", (void*)fp);
+          log_debug ("fd_cache_close (%d) real\n", (int)fp);
         return;
     }
     /* try to reuse a slot */




More information about the Gnupg-commits mailing list