From 9eca6cc64392b4ad8bd8723e840f491fa36524ad Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 15 Nov 2010 21:15:26 +0100 Subject: slirp: Remove unused code for bad sprintf Neither DECLARE_SPRINTF nor BAD_SPRINTF are needed for QEMU. QEMU won't support systems with missing or bad declarations for sprintf. The unused code was detected while looking for functions with missing format checking. Instead of adding GCC_FMT_ATTR, the unused code was removed. Cc: Blue Swirl Signed-off-by: Stefan Weil Signed-off-by: Anthony Liguori --- slirp/slirp_config.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'slirp/slirp_config.h') diff --git a/slirp/slirp_config.h b/slirp/slirp_config.h index f19c703..18db45c 100644 --- a/slirp/slirp_config.h +++ b/slirp/slirp_config.h @@ -85,9 +85,6 @@ /* Define if the machine is big endian */ //#undef HOST_WORDS_BIGENDIAN -/* Define if your sprintf returns char * instead of int */ -#undef BAD_SPRINTF - /* Define if you have readv */ #undef HAVE_READV @@ -97,9 +94,6 @@ #define DECLARE_IOVEC #endif -/* Define if a declaration of sprintf/fprintf is needed */ -#undef DECLARE_SPRINTF - /* Define if you have a POSIX.1 sys/wait.h */ #undef HAVE_SYS_WAIT_H -- cgit v1.1