summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-08-20 12:53:36 +0000
committerkris <kris@FreeBSD.org>2001-08-20 12:53:36 +0000
commit110fc843a0e59e68be1a9d8d1a4bb0bcb152872b (patch)
tree486abf1f9f616d966d1546114ba2c7eb29bb7839 /lib/libc
parent0e618921c14332b422b10cbd97a3431372f9eec1 (diff)
downloadFreeBSD-src-110fc843a0e59e68be1a9d8d1a4bb0bcb152872b.zip
FreeBSD-src-110fc843a0e59e68be1a9d8d1a4bb0bcb152872b.tar.gz
Mark some functions as __printflike() and/or taking const char * arguments
instead of char *. MFC after: 2 weeks
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/db/test/dbtest.c2
-rw-r--r--lib/libc/net/gethostbydns.c4
-rw-r--r--lib/libc/stdio/vfprintf.c2
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 ***));
OpenPOWER on IntegriCloud