rt_key() is no more. Use rt_getkey(). trunk
authordyoung <dyoung@NetBSD.org>
Thu, 19 Jul 2007 20:51:04 +0000
branchtrunk
changeset 160533 b3207483d4e0
parent 160532 102e2ce77664
child 160534 523a03d3f880
rt_key() is no more. Use rt_getkey().
usr.bin/netstat/route.c
--- a/usr.bin/netstat/route.c	Thu Jul 19 20:48:52 2007 +0000
+++ b/usr.bin/netstat/route.c	Thu Jul 19 20:51:04 2007 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: route.c,v 1.68 2006/08/26 15:33:20 matt Exp $	*/
+/*	$NetBSD: route.c,v 1.69 2007/07/19 20:51:04 dyoung Exp $	*/
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)route.c	8.3 (Berkeley) 3/9/94";
 #else
-__RCSID("$NetBSD: route.c,v 1.68 2006/08/26 15:33:20 matt Exp $");
+__RCSID("$NetBSD: route.c,v 1.69 2007/07/19 20:51:04 dyoung Exp $");
 #endif
 #endif /* not lint */
 
@@ -102,7 +102,7 @@
 struct	radix_node rnode;
 struct	radix_mask rmask;
 
-static struct sockaddr *kgetsa(struct sockaddr *);
+static struct sockaddr *kgetsa(const struct sockaddr *);
 static void p_tree(struct radix_node *);
 static void p_rtnode(void);
 static void p_krtentry(struct rtentry *);
@@ -145,8 +145,7 @@
 }
 
 static struct sockaddr *
-kgetsa(dst)
-	struct sockaddr *dst;
+kgetsa(const struct sockaddr *dst)
 {
 
 	kget(dst, pt_u.u_sa);
@@ -268,7 +267,7 @@
 
 	memset(&addr_un, 0, sizeof(addr_un));
 	memset(&mask_un, 0, sizeof(mask_un));
-	addr = sockcopy(kgetsa(rt_key(rt)), &addr_un);
+	addr = sockcopy(kgetsa(rt_getkey(rt)), &addr_un);
 	af = addr->sa_family;
 	if (rt_mask(rt))
 		mask = sockcopy(kgetsa(rt_mask(rt)), &mask_un);