commit 2366164de74a83c8cddf2abd0f500152d9053a3a
parent 27f9163d2e21bec622d30673714a92a1515ed589
Author: sin <sin@2f30.org>
Date: Sun, 1 Nov 2015 10:16:49 +0000
No need for semicolon after ARGEND
This is also the style used in Plan 9.
Diffstat:
61 files changed, 61 insertions(+), 61 deletions(-)
diff --git a/cal.c b/cal.c
@@ -182,7 +182,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (nmons == 0) {
if (argc == 1) {
diff --git a/cat.c b/cat.c
@@ -24,7 +24,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc) {
concat(stdin, "<stdin>", stdout, "<stdout>");
diff --git a/chgrp.c b/chgrp.c
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc < 2)
usage();
diff --git a/chown.c b/chown.c
@@ -67,7 +67,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc < 2)
usage();
diff --git a/cmp.c b/cmp.c
@@ -27,7 +27,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc != 2 || (lflag && sflag))
usage();
diff --git a/cols.c b/cols.c
@@ -35,7 +35,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!cflag) {
if ((p = getenv("COLUMNS")))
diff --git a/comm.c b/comm.c
@@ -44,7 +44,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc != 2)
usage();
diff --git a/cp.c b/cp.c
@@ -40,7 +40,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc < 2)
usage();
diff --git a/cron.c b/cron.c
@@ -426,7 +426,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc > 0)
usage();
diff --git a/cut.c b/cut.c
@@ -178,7 +178,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!mode)
usage();
diff --git a/date.c b/date.c
@@ -31,7 +31,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc) {
if (argc != 1 || argv[0][0] != '+')
diff --git a/du.c b/du.c
@@ -89,7 +89,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if ((aflag && sflag) || (dflag && sflag))
usage();
diff --git a/env.c b/env.c
@@ -30,7 +30,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
for (; *argv && strchr(*argv, '='); argc--, argv++)
putenv(*argv);
diff --git a/expand.c b/expand.c
@@ -103,7 +103,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
tablistlen = parselist(tl);
diff --git a/find.c b/find.c
@@ -1006,7 +1006,7 @@ main(int argc, char **argv)
case 'H': gflags.l = !(gflags.h = 1); break;
case 'L': gflags.h = !(gflags.l = 1); break;
default : usage();
- } ARGEND;
+ } ARGEND
paths = argv;
diff --git a/flock.c b/flock.c
@@ -39,7 +39,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc < 2)
usage();
diff --git a/fold.c b/fold.c
@@ -90,7 +90,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc) {
fold(stdin, "<stdin>");
diff --git a/getconf.c b/getconf.c
@@ -270,7 +270,7 @@ main(int argc, char *argv[])
/* ignore */
EARGF(usage());
break;
- } ARGEND;
+ } ARGEND
if (argc == 1) {
/* sysconf */
diff --git a/grep.c b/grep.c
@@ -236,7 +236,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc == 0 && !eflag && !fflag)
usage(); /* no pattern */
diff --git a/head.c b/head.c
@@ -44,7 +44,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc) {
head(stdin, "<stdin>", n);
diff --git a/join.c b/join.c
@@ -511,7 +511,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (sep)
seplen = unescape(sep);
diff --git a/ln.c b/ln.c
@@ -39,7 +39,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc)
usage();
diff --git a/logger.c b/logger.c
@@ -65,7 +65,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
openlog(tag ? tag : getlogin(), logflags, 0);
diff --git a/ls.c b/ls.c
@@ -432,7 +432,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
switch (argc) {
case 0: /* fallthrough */
diff --git a/md5sum.c b/md5sum.c
@@ -33,7 +33,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
ret |= cryptfunc(argc, argv, &md5_ops, md, sizeof(md));
ret |= fshut(stdin, "<stdin>") | fshut(stdout, "<stdout>");
diff --git a/mkdir.c b/mkdir.c
@@ -29,7 +29,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc)
usage();
diff --git a/mkfifo.c b/mkfifo.c
@@ -25,7 +25,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc)
usage();
diff --git a/mktemp.c b/mktemp.c
@@ -40,7 +40,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc > 1)
usage();
diff --git a/mv.c b/mv.c
@@ -45,7 +45,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc < 2)
usage();
diff --git a/nice.c b/nice.c
@@ -25,7 +25,7 @@ main(int argc, char *argv[])
default:
usage();
break;
- } ARGEND;
+ } ARGEND
if (!argc)
usage();
diff --git a/nl.c b/nl.c
@@ -183,7 +183,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc > 1)
usage();
diff --git a/od.c b/od.c
@@ -258,7 +258,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
/* line length is lcm of type lengths and >= 16 by doubling */
TAILQ_FOREACH(t, &head, entry)
diff --git a/paste.c b/paste.c
@@ -100,7 +100,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc)
usage();
diff --git a/pwd.c b/pwd.c
@@ -40,7 +40,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!getcwd(cwd, sizeof(cwd)))
eprintf("getcwd:");
diff --git a/readlink.c b/readlink.c
@@ -35,7 +35,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc != 1)
usage();
diff --git a/renice.c b/renice.c
@@ -56,7 +56,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc || !adj)
usage();
diff --git a/rm.c b/rm.c
@@ -24,7 +24,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc) {
if (!(r.flags & SILENT))
diff --git a/rmdir.c b/rmdir.c
@@ -23,7 +23,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc)
usage();
diff --git a/sed.c b/sed.c
@@ -1706,7 +1706,7 @@ main(int argc, char *argv[])
script = 1;
break;
default : usage();
- } ARGEND;
+ } ARGEND
/* no script to run */
if (!script && !argc)
diff --git a/seq.c b/seq.c
@@ -98,7 +98,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
switch (argc) {
case 3:
diff --git a/sha1sum.c b/sha1sum.c
@@ -32,7 +32,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
ret |= cryptfunc(argc, argv, &sha1_ops, md, sizeof(md));
ret |= fshut(stdin, "<stdin>") | fshut(stdout, "<stdout>");
diff --git a/sha256sum.c b/sha256sum.c
@@ -32,7 +32,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
ret |= cryptfunc(argc, argv, &sha256_ops, md, sizeof(md));
ret |= fshut(stdin, "<stdin>") | fshut(stdout, "<stdout>");
diff --git a/sha512sum.c b/sha512sum.c
@@ -32,7 +32,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
ret |= cryptfunc(argc, argv, &sha512_ops, md, sizeof(md));
ret |= fshut(stdin, "<stdin>") | fshut(stdout, "<stdout>");
diff --git a/sort.c b/sort.c
@@ -291,7 +291,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
/* -b shall only apply to custom key definitions */
if (TAILQ_EMPTY(&kdhead) && global_flags)
diff --git a/split.c b/split.c
@@ -73,7 +73,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (*argv)
file = *argv++;
diff --git a/strings.c b/strings.c
@@ -74,7 +74,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc) {
strings(stdin, "<stdin>", len);
diff --git a/tail.c b/tail.c
@@ -106,7 +106,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc)
tail(stdin, "<stdin>", n);
diff --git a/tar.c b/tar.c
@@ -523,7 +523,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!mode)
usage();
diff --git a/tee.c b/tee.c
@@ -27,7 +27,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (iflag && signal(SIGINT, SIG_IGN) == SIG_ERR)
eprintf("signal:");
diff --git a/tftp.c b/tftp.c
@@ -269,7 +269,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!host || !argc)
usage();
diff --git a/time.c b/time.c
@@ -28,7 +28,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc)
usage();
diff --git a/touch.c b/touch.c
@@ -147,7 +147,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc)
usage();
diff --git a/tr.c b/tr.c
@@ -189,7 +189,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc || argc > 2 || (argc == 1 && dflag == sflag))
usage();
diff --git a/uname.c b/uname.c
@@ -38,7 +38,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (uname(&u) < 0)
eprintf("uname:");
diff --git a/unexpand.c b/unexpand.c
@@ -146,7 +146,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
tablistlen = parselist(tl);
diff --git a/uniq.c b/uniq.c
@@ -118,7 +118,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc > 2)
usage();
diff --git a/uudecode.c b/uudecode.c
@@ -242,7 +242,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (argc > 1)
usage();
diff --git a/uuencode.c b/uuencode.c
@@ -110,7 +110,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc || argc > 2)
usage();
diff --git a/wc.c b/wc.c
@@ -80,7 +80,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc) {
wc(stdin, NULL);
diff --git a/which.c b/which.c
@@ -69,7 +69,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
if (!argc)
usage();
diff --git a/xargs.c b/xargs.c
@@ -226,7 +226,7 @@ main(int argc, char *argv[])
break;
default:
usage();
- } ARGEND;
+ } ARGEND
do {
argsz = 0; i = 0; a = 0;