diff options
author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
---|---|---|
committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
commit | 709e8f9ae1d734c1a163c9b421df4b8153939ce7 (patch) | |
tree | 15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/slstat | |
parent | 010f5413b5781bc362fde190ec835a424ec8d28e (diff) | |
download | src-test2-709e8f9ae1d734c1a163c9b421df4b8153939ce7.tar.gz src-test2-709e8f9ae1d734c1a163c9b421df4b8153939ce7.zip |
Notes
Diffstat (limited to 'usr.sbin/slstat')
-rw-r--r-- | usr.sbin/slstat/slstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/slstat/slstat.c b/usr.sbin/slstat/slstat.c index 87e91382817f..402c24840d17 100644 --- a/usr.sbin/slstat/slstat.c +++ b/usr.sbin/slstat/slstat.c @@ -22,7 +22,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: slstat.c,v 1.2 1994/10/17 06:05:32 davidg Exp $"; +static char rcsid[] = "$Id: slstat.c,v 1.3 1994/11/19 13:57:21 jkh Exp $"; #endif #include <stdio.h> @@ -56,7 +56,7 @@ struct nlist nl[] = { { 0 } }; -#define INTERFACE_PREFIX "sl%d" +#define INTERFACE_PREFIX "sl%d" char interface[IFNAMSIZ]; const char *system = NULL; @@ -293,7 +293,7 @@ knlist(system, nl, errstr) if (kd == 0) /* kopen() must be called first */ abort(); - + if (kvm_nlist(nl) < 0 || nl[0].n_type == 0) { fprintf(stderr, "%s: %s: no namelist\n", errstr, system); return -1; |