summaryrefslogtreecommitdiffstats
path: root/usr.bin/xinstall
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1996-09-28 02:53:45 +0000
committerimp <imp@FreeBSD.org>1996-09-28 02:53:45 +0000
commitf558febd8110b3f4707a6b9cfd1928feb2f20c39 (patch)
treeeba89c6e7bf2eeb47d695309ff02b895d78fc749 /usr.bin/xinstall
parentc70c65cc5d9dbdf35a4c4681e491eca501d9988d (diff)
downloadFreeBSD-src-f558febd8110b3f4707a6b9cfd1928feb2f20c39.zip
FreeBSD-src-f558febd8110b3f4707a6b9cfd1928feb2f20c39.tar.gz
Use EX_* exit values, from NetBSD
Diffstat (limited to 'usr.bin/xinstall')
-rw-r--r--usr.bin/xinstall/xinstall.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c
index c5096d1..780ed8b 100644
--- a/usr.bin/xinstall/xinstall.c
+++ b/usr.bin/xinstall/xinstall.c
@@ -40,7 +40,7 @@ static const char copyright[] =
#ifndef lint
/*static char sccsid[] = "From: @(#)xinstall.c 8.1 (Berkeley) 7/21/93";*/
static const char rcsid[] =
- "$Id: xinstall.c,v 1.13 1996/09/24 04:15:02 imp Exp $";
+ "$Id: xinstall.c,v 1.14 1996/09/24 17:29:42 bde Exp $";
#endif /* not lint */
/*-
@@ -74,8 +74,8 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sysexits.h>
#include <unistd.h>
+#include <sysexits.h>
#include <utime.h>
#include "pathnames.h"
@@ -196,7 +196,8 @@ main(argc, argv)
if (!no_target && (to_sb.st_mode & S_IFMT) == S_IFDIR) {
for (; *argv != to_name; ++argv)
install(*argv, to_name, fset, iflags | DIRECTORY);
- exit(0);
+ exit(EX_OK);
+ /* NOTREACHED */
}
/* can't do file1 file2 directory/file */
@@ -232,7 +233,8 @@ main(argc, argv)
#endif
}
install(*argv, to_name, fset, iflags);
- exit(0);
+ exit(EX_OK);
+ /* NOTREACHED */
}
#ifdef ALLOW_NUMERIC_IDS
@@ -613,6 +615,7 @@ strip(to_name)
if (wait(&status) == -1 || status) {
(void)unlink(to_name);
exit(EX_SOFTWARE);
+ /* NOTREACHED */
}
}
}
@@ -626,7 +629,8 @@ usage()
{
(void)fprintf(stderr,
"usage: install [-CcDps] [-f flags] [-g group] [-m mode] [-o owner] file1 file2;\n\tor file1 ... fileN directory\n");
- exit(1);
+ exit(EX_USAGE);
+ /* NOTREACHED */
}
/*
OpenPOWER on IntegriCloud