diff options
| author | Bill Fumerola <billf@FreeBSD.org> | 1999-07-21 02:49:42 +0000 |
|---|---|---|
| committer | Bill Fumerola <billf@FreeBSD.org> | 1999-07-21 02:49:42 +0000 |
| commit | c1160fe49290cf3b6208bcd5b91a85cd365e3765 (patch) | |
| tree | b43c806dffde12739c0d51a730d9ffb6bc2ece2d /sbin/sysctl | |
| parent | 3bdaa8d82e400a3ec7378c452cdd98838e1bfc6f (diff) | |
Notes
Diffstat (limited to 'sbin/sysctl')
| -rw-r--r-- | sbin/sysctl/sysctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index f264409d6b3d..072ffac0dc5c 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)from: sysctl.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: sysctl.c,v 1.19 1998/11/08 19:27:43 phk Exp $"; + "$Id: sysctl.c,v 1.20 1999/01/10 02:10:08 des Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -477,11 +477,12 @@ sysctl_all (int *oid, int len) while (1) { l2 = sizeof name2; j = sysctl(name1, l1, name2, &l2, 0, 0); - if (j < 0) + if (j < 0) { if (errno == ENOENT) return 0; else err(1, "sysctl(getnext) %d %d", j, l2); + } l2 /= sizeof (int); |
