From adf2b2f57353e4df625067cbf0b24eb186989d8a Mon Sep 17 00:00:00 2001 From: stateless Date: Mon, 17 Jun 2013 14:08:30 +0100 Subject: [PATCH] Remove unnecessary exit(1) in usage() --- chmod.c | 1 - chown.c | 1 - cmp.c | 1 - date.c | 1 - dirname.c | 1 - echo.c | 1 - fold.c | 1 - head.c | 1 - kill.c | 1 - ln.c | 1 - ls.c | 1 - mc.c | 1 - mkdir.c | 1 - mkfifo.c | 1 - mv.c | 1 - nl.c | 1 - nohup.c | 1 - paste.c | 1 - pwd.c | 1 - readlink.c | 1 - rm.c | 1 - seq.c | 1 - sleep.c | 1 - sort.c | 1 - tail.c | 1 - tee.c | 1 - touch.c | 1 - uname.c | 1 - uniq.c | 1 - 29 files changed, 29 deletions(-) diff --git a/chmod.c b/chmod.c index 805ecdc..2809914 100644 --- a/chmod.c +++ b/chmod.c @@ -17,7 +17,6 @@ static void usage(void) { eprintf("usage: %s [-r] mode [file...]\n", argv0); - exit(1); } int diff --git a/chown.c b/chown.c index 867785c..4f1d9d8 100644 --- a/chown.c +++ b/chown.c @@ -18,7 +18,6 @@ static void usage(void) { eprintf("usage: %s [-r] [owner][:[group]] file...\n", argv0); - exit(1); } int diff --git a/cmp.c b/cmp.c index 4a9b4a6..6bc97cc 100644 --- a/cmp.c +++ b/cmp.c @@ -11,7 +11,6 @@ static void usage(void) { enprintf(Error, "usage: %s [-ls] file1 file2\n", argv0); - exit(1); } int diff --git a/date.c b/date.c index fcf5cca..c3baadb 100644 --- a/date.c +++ b/date.c @@ -9,7 +9,6 @@ static void usage(void) { eprintf("usage: %s [-u] [-d format] [+FORMAT]\n", argv0); - exit(1); } int diff --git a/dirname.c b/dirname.c index bcb62dd..431291a 100644 --- a/dirname.c +++ b/dirname.c @@ -9,7 +9,6 @@ static void usage(void) { eprintf("usage: %s string\n", argv0); - exit(1); } int diff --git a/echo.c b/echo.c index 172db1c..efe6f27 100644 --- a/echo.c +++ b/echo.c @@ -9,7 +9,6 @@ static void usage(void) { eprintf("usage: %s [-n] text\n", argv0); - exit(1); } int diff --git a/fold.c b/fold.c index 83e85a0..64d430b 100644 --- a/fold.c +++ b/fold.c @@ -17,7 +17,6 @@ static void usage(void) { eprintf("usage: %s [-bs] [-w width] [FILE...]\n", argv0); - exit(1); } int diff --git a/head.c b/head.c index 8183b95..500c678 100644 --- a/head.c +++ b/head.c @@ -11,7 +11,6 @@ static void usage(void) { eprintf("usage: %s [-n] [FILE...]\n", argv0); - exit(1); } int diff --git a/kill.c b/kill.c index 4874659..f4f4a56 100644 --- a/kill.c +++ b/kill.c @@ -24,7 +24,6 @@ usage(void) { eprintf("usage: %s [-s signal] [pid...]\n" " %s -l [signum]\n", argv0, argv0); - exit(1); } int diff --git a/ln.c b/ln.c index 5c7d320..bcb8d70 100644 --- a/ln.c +++ b/ln.c @@ -15,7 +15,6 @@ static void usage(void) { eprintf("usage: %s [-fs] target linkname\n", argv0); - exit(1); } int diff --git a/ls.c b/ls.c index 78a25af..e86246e 100644 --- a/ls.c +++ b/ls.c @@ -39,7 +39,6 @@ static void usage(void) { eprintf("usage: %s [-adlt] [FILE...]\n", argv0); - exit(1); } int diff --git a/mc.c b/mc.c index efd2aa9..e18ad51 100644 --- a/mc.c +++ b/mc.c @@ -18,7 +18,6 @@ static void usage(void) { eprintf("usage: %s [-c chars] [FILE...]\n", argv0); - exit(1); } int diff --git a/mkdir.c b/mkdir.c index 52f8167..89e9ba5 100644 --- a/mkdir.c +++ b/mkdir.c @@ -14,7 +14,6 @@ static void usage(void) { eprintf("usage: %s [-p] directory...\n", argv0); - exit(1); } int diff --git a/mkfifo.c b/mkfifo.c index a6be4c8..406e532 100644 --- a/mkfifo.c +++ b/mkfifo.c @@ -9,7 +9,6 @@ static void usage(void) { eprintf("usage: %s name...\n", argv0); - exit(1); } int diff --git a/mv.c b/mv.c index a5b9bc3..1608118 100644 --- a/mv.c +++ b/mv.c @@ -13,7 +13,6 @@ static void usage(void) { eprintf("usage: %s source... dest\n", argv0); - exit(1); } int diff --git a/nl.c b/nl.c index 0f9e00c..601984a 100644 --- a/nl.c +++ b/nl.c @@ -19,7 +19,6 @@ usage(void) { eprintf("usage: %s [-b style] [-i increment] [-s sep] [FILE...]\n", argv0); - exit(1); } int diff --git a/nohup.c b/nohup.c index 1ae22a6..76d7ce3 100644 --- a/nohup.c +++ b/nohup.c @@ -13,7 +13,6 @@ static void usage(void) { eprintf("usage: %s command [argument...]\n", argv0); - exit(1); } int diff --git a/paste.c b/paste.c index 2709431..e4e43c5 100644 --- a/paste.c +++ b/paste.c @@ -23,7 +23,6 @@ static void usage(void) { eprintf("usage: %s [-s] [-d list] file...\n", argv0); - exit(1); } int diff --git a/pwd.c b/pwd.c index 6fd655d..100cc82 100644 --- a/pwd.c +++ b/pwd.c @@ -11,7 +11,6 @@ static void usage(void) { eprintf("usage: %s [-LP]\n", argv0); - exit(1); } int diff --git a/readlink.c b/readlink.c index cb86134..6df74e9 100644 --- a/readlink.c +++ b/readlink.c @@ -12,7 +12,6 @@ static void usage(void) { eprintf("usage: %s [-fn] file\n", argv0); - exit(1); } int diff --git a/rm.c b/rm.c index 8dd6708..a9d02c1 100644 --- a/rm.c +++ b/rm.c @@ -11,7 +11,6 @@ static void usage(void) { eprintf("usage: %s [-fr] FILE...\n", argv0); - exit(1); } int diff --git a/seq.c b/seq.c index 5ed7cfd..20edaa5 100644 --- a/seq.c +++ b/seq.c @@ -16,7 +16,6 @@ usage(void) { eprintf("usage: %s [-f format] [-s sep] [-w width] first" " [inc [last]]\n", argv0); - exit(1); } int diff --git a/sleep.c b/sleep.c index ac4152a..1f6b85a 100644 --- a/sleep.c +++ b/sleep.c @@ -7,7 +7,6 @@ static void usage(void) { eprintf("usage: %s seconds\n", argv0); - exit(1); } int diff --git a/sort.c b/sort.c index 18bb463..f7b3eb7 100644 --- a/sort.c +++ b/sort.c @@ -18,7 +18,6 @@ static void usage(void) { eprintf("usage: %s [-ru] [file...]\n", argv0); - exit(1); } int diff --git a/tail.c b/tail.c index ece182c..3fbd606 100644 --- a/tail.c +++ b/tail.c @@ -13,7 +13,6 @@ static void usage(void) { eprintf("usage: %s [-n lines] [file]\n", argv0); - exit(1); } int diff --git a/tee.c b/tee.c index e46a39c..eaf3c01 100644 --- a/tee.c +++ b/tee.c @@ -9,7 +9,6 @@ static void usage(void) { eprintf("usage: %s [-a] [file...]\n", argv0); - exit(1); } int diff --git a/touch.c b/touch.c index 2e3f70c..0ac00e5 100644 --- a/touch.c +++ b/touch.c @@ -18,7 +18,6 @@ static void usage(void) { eprintf("usage: %s [-c] [-t stamp] file...\n", argv0); - exit(1); } int diff --git a/uname.c b/uname.c index 73e0448..84e318b 100644 --- a/uname.c +++ b/uname.c @@ -10,7 +10,6 @@ static void usage(void) { eprintf("usage: %s [-amnrsv]\n", argv0); - exit(1); } int diff --git a/uniq.c b/uniq.c index 32bcf1b..7eb49f3 100644 --- a/uniq.c +++ b/uniq.c @@ -23,7 +23,6 @@ static void usage(void) { eprintf("usage: %s [-cdu] [input]]\n", argv0); - exit(1); } int -- 1.7.10.4