From da87ee1ae0616b15fe67ba63856af79803005d9d Mon Sep 17 00:00:00 2001 From: David Nugent Date: Sat, 15 Jan 2000 00:20:22 +0000 Subject: Portability fixes for other bsd4.4 derivatives. --- pw/pw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pw/pw.c') diff --git a/pw/pw.c b/pw/pw.c index 2118854..c17775f 100644 --- a/pw/pw.c +++ b/pw/pw.c @@ -35,6 +35,9 @@ static const char rcsid[] = #include #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; -- cgit v1.2.3