diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-04-28 11:10:04 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-04-28 11:10:04 +0000 |
commit | 3d004f870f50deee0f36d1b11fde6ef62db09466 (patch) | |
tree | f7fdd12659e01d89f09562e7e5659b4848ef08d6 /sbin/dmesg | |
parent | cf257559ce8ca0954fc93fadd0b3d498c5130375 (diff) |
tiny doses of KNF, inspired by a diff for sth else from Brian <bwaichu@yahoo.com>
Diffstat (limited to 'sbin/dmesg')
-rw-r--r-- | sbin/dmesg/dmesg.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c index b2529d66221..f3c5eed4cd5 100644 --- a/sbin/dmesg/dmesg.c +++ b/sbin/dmesg/dmesg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dmesg.c,v 1.18 2005/04/14 10:23:37 henning Exp $ */ +/* $OpenBSD: dmesg.c,v 1.19 2005/04/28 11:10:03 henning Exp $ */ /* $NetBSD: dmesg.c,v 1.8 1995/03/18 14:54:49 cgd Exp $ */ /*- @@ -166,20 +166,22 @@ main(int argc, char *argv[]) if (ch == '\0') continue; newl = ch == '\n'; - (void)vis(buf, ch, 0, 0); + vis(buf, ch, 0, 0); if (buf[1] == 0) - (void)putchar(buf[0]); + putchar(buf[0]); else - (void)printf("%s", buf); + printf("%s", buf); } if (!newl) - (void)putchar('\n'); + putchar('\n'); return (0); } void usage(void) { - (void)fprintf(stderr, "usage: dmesg [-M core] [-N system]\n"); + extern char *__progname; + + fprintf(stderr, "usage: %s [-M core] [-N system]\n", __progname); exit(1); } |