summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-07-05 09:28:13 +0000
committerkris <kris@FreeBSD.org>2001-07-05 09:28:13 +0000
commit3f5ce02c768f0ab50722287803b7e2fbdbbd6873 (patch)
treeb84b50c308fa0bf10d408b8906b8cb118e613c9c /usr.sbin
parentea830eccb407c6c581978a437b7b3090e137c7d9 (diff)
downloadFreeBSD-src-3f5ce02c768f0ab50722287803b7e2fbdbbd6873.zip
FreeBSD-src-3f5ce02c768f0ab50722287803b7e2fbdbbd6873.tar.gz
Mark some functions as __printflike()
MFC after: 1 week
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/mrouted/cfparse.y4
-rw-r--r--usr.sbin/mrouted/defs.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mrouted/cfparse.y b/usr.sbin/mrouted/cfparse.y
index 2f74399..fae52087 100644
--- a/usr.sbin/mrouted/cfparse.y
+++ b/usr.sbin/mrouted/cfparse.y
@@ -19,8 +19,8 @@
/*
* Local function declarations
*/
-static void fatal __P((char *fmt, ...));
-static void warn __P((char *fmt, ...));
+static void fatal __P((char *fmt, ...)) __printflike(1, 2);
+static void warn __P((char *fmt, ...)) __printflike(1, 2);;
static void yyerror __P((char *s));
static char * next_word __P((void));
static int yylex __P((void));
diff --git a/usr.sbin/mrouted/defs.h b/usr.sbin/mrouted/defs.h
index 1ec24de..267c158 100644
--- a/usr.sbin/mrouted/defs.h
+++ b/usr.sbin/mrouted/defs.h
@@ -236,7 +236,7 @@ extern char * sys_errlist[];
/* main.c */
extern char * scaletime __P((u_long));
-extern void log __P((int, int, char *, ...));
+extern void log __P((int, int, char *, ...)) __printflike(3, 4);
extern int register_input_handler __P((int, ihfunc_t));
/* igmp.c */
OpenPOWER on IntegriCloud