projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
not every value return in an nlist structure was being
[unix-history]
/
usr
/
src
/
usr.bin
/
netstat
/
route.c
diff --git
a/usr/src/usr.bin/netstat/route.c
b/usr/src/usr.bin/netstat/route.c
index
84b4d32
..
6bf5de8
100644
(file)
--- a/
usr/src/usr.bin/netstat/route.c
+++ b/
usr/src/usr.bin/netstat/route.c
@@
-6,7
+6,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)route.c 5.2
4
(Berkeley) %G%";
+static char sccsid[] = "@(#)route.c 5.2
5
(Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
@@
-33,7
+33,7
@@
static char sccsid[] = "@(#)route.c 5.24 (Berkeley) %G%";
#include <unistd.h>
#include "netstat.h"
#include <unistd.h>
#include "netstat.h"
-#define kget(p, d) (kread((
off_t
)(p), (char *)&(d), sizeof (d)))
+#define kget(p, d) (kread((
u_long
)(p), (char *)&(d), sizeof (d)))
/*
* Definitions for showing gateway flags.
/*
* Definitions for showing gateway flags.
@@
-85,7
+85,7
@@
static void p_rtentry __P((struct rtentry *));
*/
void
routepr(rtree)
*/
void
routepr(rtree)
-
off_t
rtree;
+
u_long
rtree;
{
struct radix_node_head *rnh, head;
int i;
{
struct radix_node_head *rnh, head;
int i;
@@
-178,7
+178,7
@@
kgetsa(dst)
kget(dst, pt_u.u_sa);
if (pt_u.u_sa.sa_len > sizeof (pt_u.u_sa))
kget(dst, pt_u.u_sa);
if (pt_u.u_sa.sa_len > sizeof (pt_u.u_sa))
- kread((
off_t
)dst, (char *)pt_u.u_data, pt_u.u_sa.sa_len);
+ kread((
u_long
)dst, (char *)pt_u.u_data, pt_u.u_sa.sa_len);
return (&pt_u.u_sa);
}
return (&pt_u.u_sa);
}
@@
-417,7
+417,7
@@
p_rtentry(rt)
if (rt->rt_ifp) {
if (rt->rt_ifp != lastif) {
kget(rt->rt_ifp, ifnet);
if (rt->rt_ifp) {
if (rt->rt_ifp != lastif) {
kget(rt->rt_ifp, ifnet);
- kread((
off_t
)ifnet.if_name, name, 16);
+ kread((
u_long
)ifnet.if_name, name, 16);
lastif = rt->rt_ifp;
}
printf(" %.15s%d%s", name, ifnet.if_unit,
lastif = rt->rt_ifp;
}
printf(" %.15s%d%s", name, ifnet.if_unit,
@@
-529,7
+529,7
@@
netname(in, mask)
*/
void
rt_stats(off)
*/
void
rt_stats(off)
-
off_t
off;
+
u_long
off;
{
struct rtstat rtstat;
{
struct rtstat rtstat;