diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-22 23:24:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-22 23:24:27 +0000 |
commit | a739d8273c46eaaa8047a4e6850ed06a4dc5bd56 (patch) | |
tree | f52ceda625cd8db985f7949f0063e3f107ef6105 /sbin | |
parent | 3acad13612a54fa0ed4ca062630914e87b6fed4f (diff) |
smaller dmesg
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dmesg/dmesg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c index 2aec697e822..31bfb9d198e 100644 --- a/sbin/dmesg/dmesg.c +++ b/sbin/dmesg/dmesg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dmesg.c,v 1.10 2001/06/22 22:06:23 mickey Exp $ */ +/* $OpenBSD: dmesg.c,v 1.11 2001/06/22 23:24:25 deraadt Exp $ */ /* $NetBSD: dmesg.c,v 1.8 1995/03/18 14:54:49 cgd Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)dmesg.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: dmesg.c,v 1.10 2001/06/22 22:06:23 mickey Exp $"; +static char rcsid[] = "$OpenBSD: dmesg.c,v 1.11 2001/06/22 23:24:25 deraadt Exp $"; #endif #endif /* not lint */ @@ -129,6 +129,7 @@ main(argc, argv) memcpy(&cur, bufdata, sizeof(cur)); bufdata = ((struct msgbuf *)bufdata)->msg_bufc; } else { +#ifndef NOKVM struct msgbuf *bufp; kvm_t *kd; @@ -157,6 +158,7 @@ main(argc, argv) cur.msg_bufs) != cur.msg_bufs) errx(1, "kvm_read: %s", kvm_geterr(kd)); kvm_close(kd); +#endif } if (cur.msg_bufx >= cur.msg_bufs) |