diff options
author | imp <imp@FreeBSD.org> | 2002-03-19 13:29:39 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-03-19 13:29:39 +0000 |
commit | 6718ce496e665b6c2204043dd44f4412da8aebd1 (patch) | |
tree | c7449614dbe6abcd9c53764d40d828932ef202b9 /sbin/dmesg | |
parent | cd06717f4ba8781c15336affcc01a5f30e239e1e (diff) | |
download | FreeBSD-src-6718ce496e665b6c2204043dd44f4412da8aebd1.zip FreeBSD-src-6718ce496e665b6c2204043dd44f4412da8aebd1.tar.gz |
o Remove __P
o Use ANSI function definitions
o mark usage() as __dead2
Diffstat (limited to 'sbin/dmesg')
-rw-r--r-- | sbin/dmesg/dmesg.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c index 53ac0f3..90ab20d 100644 --- a/sbin/dmesg/dmesg.c +++ b/sbin/dmesg/dmesg.c @@ -65,15 +65,13 @@ struct nlist nl[] = { { NULL }, }; -void usage __P((void)); +void usage(void) __dead2; #define KREAD(addr, var) \ kvm_read(kd, addr, &var, sizeof(var)) != sizeof(var) int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int ch, newl, skip; char *p, *ep; @@ -192,7 +190,7 @@ main(argc, argv) } void -usage() +usage(void) { (void)fprintf(stderr, "usage: dmesg [-a] [-M core] [-N system]\n"); exit(1); |