1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

Fix compiler size warning for debug output

This commit is contained in:
Werner Koch 2009-08-18 10:46:34 +00:00
parent f52ef6d450
commit f5f0171d55
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2009-08-18 Werner Koch <wk@g10code.com> 2009-08-18 Werner Koch <wk@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 * miscutil.c (print_string2): Loose check for control characters
to better cope with utf-8. The range 0x80..0x9f is nowadays not to better cope with utf-8. The range 0x80..0x9f is nowadays not
anymore accidently used for control charaters. Fixes bug#1103. anymore accidently used for control charaters. Fixes bug#1103.

View File

@ -319,7 +319,7 @@ fd_cache_close (const char *fname, FILEP_OR_FD fp)
close(fp); close(fp);
#endif #endif
if( DBG_IOBUF ) if( DBG_IOBUF )
log_debug ("fd_cache_close (%p) real\n", (void*)fp); log_debug ("fd_cache_close (%d) real\n", (int)fp);
return; return;
} }
/* try to reuse a slot */ /* try to reuse a slot */