diff options
author | charnier <charnier@FreeBSD.org> | 2002-04-12 20:23:51 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2002-04-12 20:23:51 +0000 |
commit | 64ab19a1859b7f48f8ef332764880eadf7b5bfab (patch) | |
tree | d08fedf5b7231ee597cbb6952db826c435c8b57f /bin/pax | |
parent | 21bbb17290e60e56b2eea3f7a39e7ef6097bfdba (diff) | |
download | FreeBSD-src-64ab19a1859b7f48f8ef332764880eadf7b5bfab.zip FreeBSD-src-64ab19a1859b7f48f8ef332764880eadf7b5bfab.tar.gz |
Do not return(f_returning_void());. Spell FALLTHROUGH to make it lint()able.
Diffstat (limited to 'bin/pax')
-rw-r--r-- | bin/pax/options.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/bin/pax/options.c b/bin/pax/options.c index ef1c53d..7e6b56b 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -39,10 +39,11 @@ #if 0 static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; #endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include <sys/types.h> #include <sys/stat.h> #include <sys/mtio.h> @@ -161,15 +162,20 @@ options(int argc, char **argv) else argv0 = argv[0]; - if (strcmp(NM_TAR, argv0) == 0) - return(tar_options(argc, argv)); - else if (strcmp(NM_CPIO, argv0) == 0) - return(cpio_options(argc, argv)); + if (strcmp(NM_TAR, argv0) == 0) { + tar_options(argc, argv); + return; + } + else if (strcmp(NM_CPIO, argv0) == 0) { + cpio_options(argc, argv); + return; + } /* * assume pax as the default */ argv0 = NM_PAX; - return(pax_options(argc, argv)); + pax_options(argc, argv); + return; } /* @@ -555,7 +561,7 @@ pax_options(int argc, char **argv) } --argc; dirptr = argv[argc]; - /* FALL THROUGH */ + /* FALLTHROUGH */ case ARCHIVE: case APPND: for (; optind < argc; optind++) @@ -1240,7 +1246,7 @@ cpio_options(int argc, char **argv) cpio_usage(); --argc; ++argv; - /* FALL THROUGH */ + /* FALLTHROUGH */ case ARCHIVE: case APPND: if (*argv != NULL) |