diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/db/test/dbtest.c | 2 | ||||
-rw-r--r-- | lib/libc/net/gethostbydns.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/db/test/dbtest.c b/lib/libc/db/test/dbtest.c index ebf6be8..be433c0 100644 --- a/lib/libc/db/test/dbtest.c +++ b/lib/libc/db/test/dbtest.c @@ -64,7 +64,7 @@ enum S { COMMAND, COMPARE, GET, PUT, REMOVE, SEQ, SEQFLAG, KEY, DATA }; void compare __P((DBT *, DBT *)); DBTYPE dbtype __P((char *)); void dump __P((DB *, int)); -void err __P((const char *, ...)); +void err __P((const char *, ...)) __printflike(1, 2); void get __P((DB *, DBT *)); void getdata __P((DB *, DBT *, DBT *)); void put __P((DB *, DBT *, DBT *)); diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index 4a56655..a113640 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -98,6 +98,10 @@ static u_char host_addr[16]; /* IPv4 or IPv6 */ static void addrsort __P((char **, int)); #endif +#ifdef DEBUG +static void dprintf(char *, int) __printflike(1, 0); +#endif + #if PACKETSZ > 1024 #define MAXPACKET PACKETSZ #else diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 49d4971..11f2b21 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -71,7 +71,7 @@ static const char rcsid[] = #define FLOATING_POINT static int __sprint __P((FILE *, struct __suio *)); -static int __sbprintf __P((FILE *, const char *, va_list)); +static int __sbprintf __P((FILE *, const char *, va_list)) __printflike(2, 0); static char * __ultoa __P((u_long, char *, int, int, char *)); static char * __uqtoa __P((u_quad_t, char *, int, int, char *)); static void __find_arguments __P((const char *, va_list, void ***)); |