diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2001-08-20 12:53:36 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2001-08-20 12:53:36 +0000 |
| commit | 6dac8ac9e5ffbefb9386dc0451e83d6445b78f40 (patch) | |
| tree | 486abf1f9f616d966d1546114ba2c7eb29bb7839 /lib/libc | |
| parent | 682d5741730e6095ef58543ced8c1846d0ae91ac (diff) | |
Notes
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 ebf6be883be4..be433c0a3040 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 4a566557d3c0..a11364076012 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 49d4971270d2..11f2b21d6b21 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 ***)); |
