No need for semicolon after ARGEND

This is also the style used in Plan 9.
master
sin 7 years ago
parent 27f9163d2e
commit 2366164de7

@ -182,7 +182,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (nmons == 0) {
if (argc == 1) {

@ -24,7 +24,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc) {
concat(stdin, "<stdin>", stdout, "<stdout>");

@ -61,7 +61,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc < 2)
usage();

@ -67,7 +67,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc < 2)
usage();

@ -27,7 +27,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc != 2 || (lflag && sflag))
usage();

@ -35,7 +35,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!cflag) {
if ((p = getenv("COLUMNS")))

@ -44,7 +44,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc != 2)
usage();

@ -40,7 +40,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc < 2)
usage();

@ -426,7 +426,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc > 0)
usage();

@ -178,7 +178,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!mode)
usage();

@ -31,7 +31,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc) {
if (argc != 1 || argv[0][0] != '+')

@ -89,7 +89,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if ((aflag && sflag) || (dflag && sflag))
usage();

@ -30,7 +30,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
for (; *argv && strchr(*argv, '='); argc--, argv++)
putenv(*argv);

@ -103,7 +103,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
tablistlen = parselist(tl);

@ -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;

@ -39,7 +39,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc < 2)
usage();

@ -90,7 +90,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc) {
fold(stdin, "<stdin>");

@ -270,7 +270,7 @@ main(int argc, char *argv[])
/* ignore */
EARGF(usage());
break;
} ARGEND;
} ARGEND
if (argc == 1) {
/* sysconf */

@ -236,7 +236,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc == 0 && !eflag && !fflag)
usage(); /* no pattern */

@ -44,7 +44,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc) {
head(stdin, "<stdin>", n);

@ -511,7 +511,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (sep)
seplen = unescape(sep);

@ -39,7 +39,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc)
usage();

@ -65,7 +65,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
openlog(tag ? tag : getlogin(), logflags, 0);

@ -432,7 +432,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
switch (argc) {
case 0: /* fallthrough */

@ -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>");

@ -29,7 +29,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc)
usage();

@ -25,7 +25,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc)
usage();

@ -40,7 +40,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc > 1)
usage();

@ -45,7 +45,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc < 2)
usage();

@ -25,7 +25,7 @@ main(int argc, char *argv[])
default:
usage();
break;
} ARGEND;
} ARGEND
if (!argc)
usage();

@ -183,7 +183,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc > 1)
usage();

@ -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)

@ -100,7 +100,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc)
usage();

@ -40,7 +40,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!getcwd(cwd, sizeof(cwd)))
eprintf("getcwd:");

@ -35,7 +35,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc != 1)
usage();

@ -56,7 +56,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc || !adj)
usage();

@ -24,7 +24,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc) {
if (!(r.flags & SILENT))

@ -23,7 +23,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc)
usage();

@ -1706,7 +1706,7 @@ main(int argc, char *argv[])
script = 1;
break;
default : usage();
} ARGEND;
} ARGEND
/* no script to run */
if (!script && !argc)

@ -98,7 +98,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
switch (argc) {
case 3:

@ -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>");

@ -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>");

@ -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>");

@ -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)

@ -73,7 +73,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (*argv)
file = *argv++;

@ -74,7 +74,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc) {
strings(stdin, "<stdin>", len);

@ -106,7 +106,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc)
tail(stdin, "<stdin>", n);

@ -523,7 +523,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!mode)
usage();

@ -27,7 +27,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (iflag && signal(SIGINT, SIG_IGN) == SIG_ERR)
eprintf("signal:");

@ -269,7 +269,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!host || !argc)
usage();

@ -28,7 +28,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc)
usage();

@ -147,7 +147,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc)
usage();

@ -189,7 +189,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc || argc > 2 || (argc == 1 && dflag == sflag))
usage();

@ -38,7 +38,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (uname(&u) < 0)
eprintf("uname:");

@ -146,7 +146,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
tablistlen = parselist(tl);

@ -118,7 +118,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc > 2)
usage();

@ -242,7 +242,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (argc > 1)
usage();

@ -110,7 +110,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc || argc > 2)
usage();

@ -80,7 +80,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc) {
wc(stdin, NULL);

@ -69,7 +69,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
if (!argc)
usage();

@ -226,7 +226,7 @@ main(int argc, char *argv[])
break;
default:
usage();
} ARGEND;
} ARGEND
do {
argsz = 0; i = 0; a = 0;

Loading…
Cancel
Save