Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rip6query do not declare errno on our own. from: P...



details:   https://anonhg.NetBSD.org/src/rev/44a5ca53ab4e
branches:  trunk
changeset: 500879:44a5ca53ab4e
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Dec 19 23:55:02 2000 +0000

description:
do not declare errno on our own.  from: Patrick Welche <prlw1%newn.cam.ac.uk@localhost>
sync with the latest kame tree.

diffstat:

 usr.sbin/rip6query/rip6query.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r 813ecc47998c -r 44a5ca53ab4e usr.sbin/rip6query/rip6query.c
--- a/usr.sbin/rip6query/rip6query.c    Tue Dec 19 23:09:02 2000 +0000
+++ b/usr.sbin/rip6query/rip6query.c    Tue Dec 19 23:55:02 2000 +0000
@@ -1,4 +1,5 @@
-/*     $NetBSD: rip6query.c,v 1.3 1999/12/13 04:30:53 itojun Exp $     */
+/*     $NetBSD: rip6query.c,v 1.4 2000/12/19 23:55:02 itojun Exp $     */
+/*     $KAME: rip6query.c,v 1.9 2000/12/19 23:54:01 itojun Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -36,10 +37,13 @@
 #include <string.h>
 #include <ctype.h>
 #include <signal.h>
+#include <errno.h>
 #include <err.h>
 
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <sys/queue.h>
+
 #include <net/if.h>
 #if defined(__FreeBSD__) && __FreeBSD__ >= 3
 #include <net/if_var.h>
@@ -57,7 +61,6 @@
 #endif
 
 int    s;
-extern int errno;
 struct sockaddr_in6 sin6;
 struct rip6    *ripbuf;
 
@@ -77,8 +80,6 @@
        struct sockaddr_in6 fsock;
        int i, n, len, flen;
        int c;
-       extern char *optarg;
-       extern int optind;
        int ifidx = -1;
        int error;
        char pbuf[10];



Home | Main Index | Thread Index | Old Index