Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sbin/route Pull up revision 1.40 (requested by itojun):
details: https://anonhg.NetBSD.org/src/rev/ba5e96336d3e
branches: netbsd-1-5
changeset: 491122:ba5e96336d3e
user: he <he%NetBSD.org@localhost>
date: Thu Apr 05 12:23:12 2001 +0000
description:
Pull up revision 1.40 (requested by itojun):
Remove use of uninitialized route (struct ortentry).
diffstat:
sbin/route/route.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r c104d8b5637f -r ba5e96336d3e sbin/route/route.c
--- a/sbin/route/route.c Thu Apr 05 09:48:43 2001 +0000
+++ b/sbin/route/route.c Thu Apr 05 12:23:12 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.38.4.1 2000/10/17 20:44:14 tv Exp $ */
+/* $NetBSD: route.c,v 1.38.4.2 2001/04/05 12:23:12 he Exp $ */
/*
* Copyright (c) 1983, 1989, 1991, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: route.c,v 1.38.4.1 2000/10/17 20:44:14 tv Exp $");
+__RCSID("$NetBSD: route.c,v 1.38.4.2 2001/04/05 12:23:12 he Exp $");
#endif
#endif /* not lint */
@@ -110,7 +110,6 @@
static void sodump __P((sup, char *));
static void sockaddr __P((char *, struct sockaddr *));
-struct ortentry route;
union sockunion {
struct sockaddr sa;
struct sockaddr_in sin;
@@ -877,8 +876,7 @@
(void) printf(": gateway %s", gateway);
if (attempts > 1 && ret == 0 && af == AF_INET)
(void) printf(" (%s)",
- inet_ntoa(((struct sockaddr_in *)
- &route.rt_gateway)->sin_addr));
+ inet_ntoa(so_gate.sin.sin_addr));
}
if (ret == 0)
(void) printf("\n");
Home |
Main Index |
Thread Index |
Old Index