From c113db694570aa62f32266bd0936e088f22a5cf8 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Fri, 12 Apr 2002 20:23:51 +0000 Subject: [PATCH] Do not return(f_returning_void());. Spell FALLTHROUGH to make it lint()able. --- bin/pax/options.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/bin/pax/options.c b/bin/pax/options.c index ef1c53d062c3..7e6b56b3a1e5 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 +__FBSDID("$FreeBSD$"); + #include #include #include @@ -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)