aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-08-18 10:46:34 +0000
committerWerner Koch <[email protected]>2009-08-18 10:46:34 +0000
commitf5f0171d55c33c214ccafa7ed93b0f9e760f818a (patch)
tree42377dd64a70179113b8dc6b1bf48319b8d43bea
parent* miscutil.c (print_string2): Loose check for control characters (diff)
downloadgnupg-f5f0171d55c33c214ccafa7ed93b0f9e760f818a.tar.gz
gnupg-f5f0171d55c33c214ccafa7ed93b0f9e760f818a.zip
Fix compiler size warning for debug output
-rw-r--r--util/ChangeLog3
-rw-r--r--util/iobuf.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index 1ae5ac57d..8c7d995c8 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,5 +1,8 @@
2009-08-18 Werner Koch <[email protected]>
+ * 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.
diff --git a/util/iobuf.c b/util/iobuf.c
index e14a7cce0..a5ba91e6f 100644
--- a/util/iobuf.c
+++ b/util/iobuf.c
@@ -319,7 +319,7 @@ fd_cache_close (const char *fname, FILEP_OR_FD fp)
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 */