route command: Clean up kernal symbol accesses

This commit is contained in:
Joel Sherrill
2012-10-22 10:53:17 -05:00
parent e9aaadb911
commit 0fa7dabe89
6 changed files with 41 additions and 12 deletions

View File

@@ -72,9 +72,7 @@ __FBSDID("$FreeBSD$");
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#ifndef __rtems__
#include <kvm.h>
#endif
#include "netstat.h"
static void unixdomainpr(struct xunpcb *, struct xsocket *);
@@ -204,7 +202,9 @@ fail:
#undef COPYOUT
#undef KREAD
}
#endif
#ifndef __rtems__
void
unixpr(u_long count_off, u_long gencnt_off, u_long dhead_off, u_long shead_off)
{
@@ -253,7 +253,9 @@ unixpr(u_long count_off, u_long gencnt_off, u_long dhead_off, u_long shead_off)
free(buf);
}
}
#endif
#ifndef __rtems__
static void
unixdomainpr(struct xunpcb *xunp, struct xsocket *so)
{