diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-07 18:26:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-07 18:26:23 +0000 |
commit | bca8ede36193523f5e509e218d1976dc9b8386e2 (patch) | |
tree | 8021052d902e951ea77cf9a839e25b3062a6b5bc /sbin/route | |
parent | f450dee1afdaa407e9eb35b9d02efd9642a245fa (diff) |
major -Wall cleanup, almost complete
Diffstat (limited to 'sbin/route')
-rw-r--r-- | sbin/route/route.c | 8 | ||||
-rw-r--r-- | sbin/route/show.c | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index cccdd1774c8..76a7bfbdbf4 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.42 2001/05/11 17:51:56 mickey Exp $ */ +/* $OpenBSD: route.c,v 1.43 2001/07/07 18:26:20 deraadt Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: route.c,v 1.42 2001/05/11 17:51:56 mickey Exp $"; +static char rcsid[] = "$OpenBSD: route.c,v 1.43 2001/07/07 18:26:20 deraadt Exp $"; #endif #endif /* not lint */ @@ -234,7 +234,7 @@ flushroutes(argc, argv) { size_t needed; int mib[6], rlen, seqno; - char *buf = NULL, *next, *lim; + char *buf = NULL, *next, *lim = NULL; struct rt_msghdr *rtm; struct sockaddr *sa; @@ -933,7 +933,7 @@ getaddr(which, s, hpp) char *s; struct hostent **hpp; { - sup su; + sup su = NULL; struct ns_addr ns_addr(); struct ipx_addr ipx_addr(); struct iso_addr *iso_addr(); diff --git a/sbin/route/show.c b/sbin/route/show.c index b6b0b2e470a..ee4efc6c331 100644 --- a/sbin/route/show.c +++ b/sbin/route/show.c @@ -1,4 +1,4 @@ -/* $OpenBSD: show.c,v 1.19 2000/11/15 01:45:48 angelos Exp $ */ +/* $OpenBSD: show.c,v 1.20 2001/07/07 18:26:20 deraadt Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "from: @(#)route.c 8.3 (Berkeley) 3/9/94"; #else -static char *rcsid = "$OpenBSD: show.c,v 1.19 2000/11/15 01:45:48 angelos Exp $"; +static char *rcsid = "$OpenBSD: show.c,v 1.20 2001/07/07 18:26:20 deraadt Exp $"; #endif #endif /* not lint */ @@ -108,6 +108,9 @@ static void p_flags __P((int, char *)); static void pr_rthdr __P((void)); static void pr_family __P((int)); +int keyword(char *); +void usage(char *); + /* * Print routing tables. */ @@ -117,7 +120,7 @@ show(argc, argv) char **argv; { struct rt_msghdr *rtm; - char *buf = NULL, *next, *lim; + char *buf = NULL, *next, *lim = NULL; size_t needed; int mib[6], af = 0; struct sockaddr *sa; |