summaryrefslogtreecommitdiffstats
path: root/usr.sbin/route6d/route6d.c
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-10-08 07:43:38 +0000
committerkris <kris@FreeBSD.org>2000-10-08 07:43:38 +0000
commitc3fda0391484a6ce7f192c6d3a50d6e247174117 (patch)
tree336e5bdae6015f7f3542cfadb26fcd85f4c3dc83 /usr.sbin/route6d/route6d.c
parent33786ff42408272ad6bf80aa71d4334330f5aa6b (diff)
downloadFreeBSD-src-c3fda0391484a6ce7f192c6d3a50d6e247174117.zip
FreeBSD-src-c3fda0391484a6ce7f192c6d3a50d6e247174117.tar.gz
Sync with KAME. Format string auditing and manpage cleanups.
Obtained from: KAME Submitted by: Bill Sommerfeld <sommerfeld@netbsd.org>
Diffstat (limited to 'usr.sbin/route6d/route6d.c')
-rw-r--r--usr.sbin/route6d/route6d.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index 102c1ff..b5a91a9 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -253,9 +253,12 @@ struct in6_addr *plen2mask __P((int));
struct riprt *rtsearch __P((struct netinfo6 *));
int ripinterval __P((int));
time_t ripsuptrig __P((void));
-void fatal __P((const char *, ...));
-void trace __P((int, const char *, ...));
-void tracet __P((int, const char *, ...));
+void fatal __P((const char *, ...))
+ __attribute__((__format__(__printf__, 1, 2)));
+void trace __P((int, const char *, ...))
+ __attribute__((__format__(__printf__, 2, 3)));
+void tracet __P((int, const char *, ...))
+ __attribute__((__format__(__printf__, 2, 3)));
unsigned int if_maxindex __P((void));
struct ifc *ifc_find __P((char *));
struct iff *iff_find __P((struct ifc *, int));
@@ -530,7 +533,7 @@ init()
hints.ai_flags = AI_PASSIVE;
error = getaddrinfo(NULL, port, &hints, &res);
if (error)
- fatal(gai_strerror(error));
+ fatal("%s", gai_strerror(error));
if (res->ai_next)
fatal(":: resolved to multiple address");
@@ -563,7 +566,7 @@ init()
hints.ai_socktype = SOCK_DGRAM;
error = getaddrinfo(RIP6_DEST, port, &hints, &res);
if (error)
- fatal(gai_strerror(error));
+ fatal("%s", gai_strerror(error));
if (res->ai_next)
fatal("%s resolved to multiple address", RIP6_DEST);
memcpy(&ripsin, res->ai_addr, res->ai_addrlen);
OpenPOWER on IntegriCloud