diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-13 23:51:36 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-13 23:51:36 +0000 |
commit | ce4fe990e6085ff0d86a8504986eced024994141 (patch) | |
tree | 12d2722e169e2fa4b44bffccacf8ea6f07c57a56 /sbin | |
parent | bd6912e8b27aa0060c93250cab5cb1e3a4b00bd2 (diff) |
escape a wrning on msgbuf, under certain circumstances
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/sysctl/sysctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 84a7d302eef..a6a779c569a 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.74 2001/07/05 08:42:15 jjbg Exp $ */ +/* $OpenBSD: sysctl.c,v 1.75 2001/07/13 23:51:35 mickey Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95"; #else -static char *rcsid = "$OpenBSD: sysctl.c,v 1.74 2001/07/05 08:42:15 jjbg Exp $"; +static char *rcsid = "$OpenBSD: sysctl.c,v 1.75 2001/07/13 23:51:35 mickey Exp $"; #endif #endif /* not lint */ @@ -370,6 +370,8 @@ parse(string, flags) newsize = 0; break; case KERN_MSGBUF: + if (flags == 0) + return; warnx("use dmesg to view %s", string); return; case KERN_VNODE: |