Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/route6d Pullup 1.18 [itojun]:



details:   https://anonhg.NetBSD.org/src/rev/8099f8908e81
branches:  netbsd-1-5
changeset: 489872:8099f8908e81
user:      tv <tv%NetBSD.org@localhost>
date:      Wed Oct 18 02:20:18 2000 +0000

description:
Pullup 1.18 [itojun]:
printf-format audit.  from sommrfeld%netbsd.org@localhost.  sync with kame.

diffstat:

 usr.sbin/route6d/route6d.c |  19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diffs (54 lines):

diff -r 8244c0244ed0 -r 8099f8908e81 usr.sbin/route6d/route6d.c
--- a/usr.sbin/route6d/route6d.c        Wed Oct 18 02:18:43 2000 +0000
+++ b/usr.sbin/route6d/route6d.c        Wed Oct 18 02:20:18 2000 +0000
@@ -1,5 +1,5 @@
-/*     $NetBSD: route6d.c,v 1.13.4.5 2000/10/17 23:07:16 tv Exp $      */
-/*     $KAME: route6d.c,v 1.37 2000/10/10 13:02:30 itojun Exp $        */
+/*     $NetBSD: route6d.c,v 1.13.4.6 2000/10/18 02:20:18 tv Exp $      */
+/*     $KAME: route6d.c,v 1.36 2000/10/05 22:20:39 itojun Exp $        */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef        lint
-__RCSID("$NetBSD: route6d.c,v 1.13.4.5 2000/10/17 23:07:16 tv Exp $");
+__RCSID("$NetBSD: route6d.c,v 1.13.4.6 2000/10/18 02:20:18 tv Exp $");
 #endif
 
 #include <stdio.h>
@@ -254,9 +254,12 @@
 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));
@@ -531,7 +534,7 @@
        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");
 
@@ -564,7 +567,7 @@
        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);



Home | Main Index | Thread Index | Old Index