summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2005-04-28 11:10:03 +0000
committerhenning <henning@openbsd.org>2005-04-28 11:10:03 +0000
commit5a8ecc439f5d2191a0505e41b3233330fee21cb8 (patch)
tree02c4293a20db8cc5b77c03d6e2f88d39a9e99a3a
parentDon't detach interface from pf's perspective until after IPv6 is done with it. (diff)
downloadwireguard-openbsd-5a8ecc439f5d2191a0505e41b3233330fee21cb8.tar.xz
wireguard-openbsd-5a8ecc439f5d2191a0505e41b3233330fee21cb8.zip
tiny doses of KNF, inspired by a diff for sth else from Brian <bwaichu@yahoo.com>
-rw-r--r--sbin/dmesg/dmesg.c14
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);
}