summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw.c
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>2000-01-15 00:20:22 +0000
committerdavidn <davidn@FreeBSD.org>2000-01-15 00:20:22 +0000
commit1b86060031b502ab415a36e1c0718118bb2f6564 (patch)
treee4d81921f89aa68445de1dbd9da239e288b455d7 /usr.sbin/pw/pw.c
parent4e7e0246b5331e49bd8318cd7aaced24ad7e39e6 (diff)
downloadFreeBSD-src-1b86060031b502ab415a36e1c0718118bb2f6564.zip
FreeBSD-src-1b86060031b502ab415a36e1c0718118bb2f6564.tar.gz
Portability fixes for other bsd4.4 derivatives.
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r--usr.sbin/pw/pw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c
index 2118854..c17775f 100644
--- a/usr.sbin/pw/pw.c
+++ b/usr.sbin/pw/pw.c
@@ -35,6 +35,9 @@ static const char rcsid[] =
#include <sys/wait.h>
#include "pw.h"
+#if !defined(_PATH_YP)
+#define _PATH_YP "/var/yp/"
+#endif
const char *Modes[] = {
"add", "del", "mod", "show", "next",
NULL};
@@ -181,7 +184,7 @@ main(int argc, char *argv[])
while ((ch = getopt(argc, argv, opts[which][mode])) != -1) {
if (ch == '?')
- errx(EX_USAGE, NULL);
+ errx(EX_USAGE, "unknown switch");
else
addarg(&arglist, ch, optarg);
optarg = NULL;
OpenPOWER on IntegriCloud