summaryrefslogtreecommitdiff
path: root/sbin/dmesg
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-04 14:59:51 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-06-04 14:59:51 +0000
commit6b10c48d5b91c11eddd20e93cec4bea00792b84b (patch)
treec823043f6afecfd05fd28435619e5fc2d05322af /sbin/dmesg
parentdef0a55bccd5d217c525df2164ff92a51088f7db (diff)
return from main() don't exit
Diffstat (limited to 'sbin/dmesg')
-rw-r--r--sbin/dmesg/dmesg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c
index 2d14d1f3b68..576d6ca6227 100644
--- a/sbin/dmesg/dmesg.c
+++ b/sbin/dmesg/dmesg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dmesg.c,v 1.8 2000/02/22 19:27:38 deraadt Exp $ */
+/* $OpenBSD: dmesg.c,v 1.9 2001/06/04 14:59:47 mickey 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.8 2000/02/22 19:27:38 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: dmesg.c,v 1.9 2001/06/04 14:59:47 mickey Exp $";
#endif
#endif /* not lint */
@@ -112,7 +112,7 @@ main(argc, argv)
/* Read in kernel message buffer, do sanity checks. */
if ((kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg")) == NULL)
- exit (1);
+ return (1);
setegid(getgid());
setgid(getgid());
@@ -169,7 +169,7 @@ main(argc, argv)
}
if (!newl)
(void)putchar('\n');
- exit(0);
+ return (0);
}
void