summaryrefslogtreecommitdiffstats
path: root/libutil/pw_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'libutil/pw_util.c')
-rw-r--r--libutil/pw_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libutil/pw_util.c b/libutil/pw_util.c
index c6c70ff..ce9eba2 100644
--- a/libutil/pw_util.c
+++ b/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 (;;) {