summaryrefslogtreecommitdiffstats
path: root/usr.bin/apply
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2003-06-08 13:39:32 +0000
committercharnier <charnier@FreeBSD.org>2003-06-08 13:39:32 +0000
commit6dc80df9f437372f2073231ff2d43481aadf2ded (patch)
tree0ab845d7f9de499f4ec6fda5d3a67d000447773e /usr.bin/apply
parent4dd40cb974e220fe97e36ec59747416a3d21f7e2 (diff)
downloadFreeBSD-src-6dc80df9f437372f2073231ff2d43481aadf2ded.zip
FreeBSD-src-6dc80df9f437372f2073231ff2d43481aadf2ded.tar.gz
Add NOTREACHED after err() inside of a switch statement.
Diffstat (limited to 'usr.bin/apply')
-rw-r--r--usr.bin/apply/apply.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/apply/apply.c b/usr.bin/apply/apply.c
index 25ba374..e75c2ee 100644
--- a/usr.bin/apply/apply.c
+++ b/usr.bin/apply/apply.c
@@ -242,6 +242,7 @@ exec_shell(const char *command, char *use_shell, char *use_name)
switch(pid = vfork()) {
case -1: /* error */
err(1, "vfork");
+ /* NOTREACHED */
case 0: /* child */
(void)sigsetmask(omask);
execl(use_shell, use_name, "-c", command, (char *)NULL);
OpenPOWER on IntegriCloud