summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vipw
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
committerbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
commit8636b161b333b18525b6f5ffc5139079c29c0d63 (patch)
treea109115514a8774e981280efca775db8a410df5b /usr.sbin/vipw
parentef44874abb9460f2956eba8e3233154af304f5b1 (diff)
downloadFreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.zip
FreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.tar.gz
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Diffstat (limited to 'usr.sbin/vipw')
-rw-r--r--usr.sbin/vipw/pw_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/vipw/pw_util.c b/usr.sbin/vipw/pw_util.c
index c6c70ffb..ce9eba2 100644
--- a/usr.sbin/vipw/pw_util.c
+++ b/usr.sbin/vipw/pw_util.c
@@ -174,11 +174,11 @@ char *username;
if(!username) {
warnx("rebuilding the database...");
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d", mppath,
- tempname, NULL);
+ tempname, (char *)NULL);
} else {
warnx("updating the database...");
execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", "-d", mppath,
- "-u", username, tempname, NULL);
+ "-u", username, tempname, (char *)NULL);
}
pw_error(_PATH_PWD_MKDB, 1, 1);
}
@@ -209,7 +209,7 @@ pw_edit(notsetuid)
(void)setuid(getuid());
}
errno = 0;
- execlp(editor, p, tempname, NULL);
+ execlp(editor, p, tempname, (char *)NULL);
_exit(errno);
}
for (;;) {
OpenPOWER on IntegriCloud