summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-07-09 07:02:08 +0000
committerderaadt <deraadt@openbsd.org>2001-07-09 07:02:08 +0000
commitc96f6a27c3654d9b37ce17714ba983b42dfbc904 (patch)
treee0f346e8dbda198bf6f0668e527c29de361f75cd /lib/libutil
parenta first pass at -Wall (diff)
downloadwireguard-openbsd-c96f6a27c3654d9b37ce17714ba983b42dfbc904.tar.xz
wireguard-openbsd-c96f6a27c3654d9b37ce17714ba983b42dfbc904.zip
correct type on last arg to execl(); nordin@cse.ogi.edu
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/passwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libutil/passwd.c b/lib/libutil/passwd.c
index 8b98890a77e..a3a2f534875 100644
--- a/lib/libutil/passwd.c
+++ b/lib/libutil/passwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: passwd.c,v 1.24 2001/01/02 18:22:32 millert Exp $ */
+/* $OpenBSD: passwd.c,v 1.25 2001/07/09 07:04:40 deraadt Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@@ -34,7 +34,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: passwd.c,v 1.24 2001/01/02 18:22:32 millert Exp $";
+static char rcsid[] = "$OpenBSD: passwd.c,v 1.25 2001/07/09 07:04:40 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -295,10 +295,10 @@ pw_mkdb(username)
if (pw_lck) {
if (username)
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d",
- pw_dir, "-u", username, pw_lck, NULL);
+ pw_dir, "-u", username, pw_lck, (char *)NULL);
else
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d",
- pw_dir, pw_lck, NULL);
+ pw_dir, pw_lck, (char *)NULL);
}
_exit(1);
}