summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
committerBrian Somers <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
commit7bc6d0158f0e9863a2a13a951321185d214cd3be (patch)
treea109115514a8774e981280efca775db8a410df5b /lib
parentb5b15b9e7fbe55119213a41835516dc91b25e978 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/pw_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libutil/pw_util.c b/lib/libutil/pw_util.c
index c6c70ffb3e99..ce9eba229afc 100644
--- a/lib/libutil/pw_util.c
+++ b/lib/libutil/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 (;;) {