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
/
ns.c
diff --git
a/usr/src/usr.bin/netstat/ns.c
b/usr/src/usr.bin/netstat/ns.c
index
178a52f
..
1883535
100644
(file)
--- a/
usr/src/usr.bin/netstat/ns.c
+++ b/
usr/src/usr.bin/netstat/ns.c
@@
-6,7
+6,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)ns.c 5.1
5
(Berkeley) %G%";
+static char sccsid[] = "@(#)ns.c 5.1
6
(Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
@@
-56,7
+56,7
@@
static int first = 1;
void
nsprotopr(off, name)
void
nsprotopr(off, name)
-
off_t
off;
+
u_long
off;
char *name;
{
struct nspcb cb;
char *name;
{
struct nspcb cb;
@@
-72,10
+72,10
@@
nsprotopr(off, name)
if (nspcb.nsp_next == (struct nspcb *)off)
return;
for (;nspcb.nsp_next != (struct nspcb *)off; prev = next) {
if (nspcb.nsp_next == (struct nspcb *)off)
return;
for (;nspcb.nsp_next != (struct nspcb *)off; prev = next) {
-
off_t
ppcb;
+
u_long
ppcb;
next = nspcb.nsp_next;
next = nspcb.nsp_next;
- kread((
off_t
)next, (char *)&nspcb, sizeof (nspcb));
+ kread((
u_long
)next, (char *)&nspcb, sizeof (nspcb));
if (nspcb.nsp_prev != prev) {
printf("???\n");
break;
if (nspcb.nsp_prev != prev) {
printf("???\n");
break;
@@
-83,9
+83,9
@@
nsprotopr(off, name)
if (!aflag && ns_nullhost(nspcb.nsp_faddr) ) {
continue;
}
if (!aflag && ns_nullhost(nspcb.nsp_faddr) ) {
continue;
}
- kread((
off_t
)nspcb.nsp_socket,
+ kread((
u_long
)nspcb.nsp_socket,
(char *)&sockb, sizeof (sockb));
(char *)&sockb, sizeof (sockb));
- ppcb = (
off_t
) nspcb.nsp_pcb;
+ ppcb = (
u_long
) nspcb.nsp_pcb;
if (ppcb) {
if (isspp) {
kread(ppcb, (char *)&sppcb, sizeof (sppcb));
if (ppcb) {
if (isspp) {
kread(ppcb, (char *)&sppcb, sizeof (sppcb));
@@
-131,7
+131,7
@@
nsprotopr(off, name)
*/
void
spp_stats(off, name)
*/
void
spp_stats(off, name)
-
off_t
off;
+
u_long
off;
char *name;
{
struct spp_istat spp_istat;
char *name;
{
struct spp_istat spp_istat;
@@
-209,7
+209,7
@@
spp_stats(off, name)
*/
void
idp_stats(off, name)
*/
void
idp_stats(off, name)
-
off_t
off;
+
u_long
off;
char *name;
{
struct idpstat idpstat;
char *name;
{
struct idpstat idpstat;
@@
-245,7
+245,7
@@
static struct {
/*ARGSUSED*/
void
nserr_stats(off, name)
/*ARGSUSED*/
void
nserr_stats(off, name)
-
off_t
off;
+
u_long
off;
char *name;
{
struct ns_errstat ns_errstat;
char *name;
{
struct ns_errstat ns_errstat;