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.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'slirp/slirp.h') diff --git a/slirp/slirp.h b/slirp/slirp.h index 462292d..dfd977a 100644 --- a/slirp/slirp.h +++ b/slirp/slirp.h @@ -237,20 +237,6 @@ void if_start(Slirp *); void if_start(struct ttys *); #endif -#ifdef BAD_SPRINTF -# define vsprintf vsprintf_len -# define sprintf sprintf_len - extern int vsprintf_len(char *, const char *, va_list); - extern int sprintf_len(char *, const char *, ...); -#endif - -#ifdef DECLARE_SPRINTF -# ifndef BAD_SPRINTF - extern int vsprintf(char *, const char *, va_list); -# endif - extern int vfprintf(FILE *, const char *, va_list); -#endif - #ifndef HAVE_STRERROR extern char *strerror(int error); #endif -- cgit v1.1