]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - libutil/pw_util.c
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
[pw-darwin.git] / libutil / pw_util.c
index c6c70ffb3e992818d9944ec2d6ea0ed7eecd87c1..ce9eba229afc28937beb2e7b075036ecfb2acaac 100644 (file)
@@ -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 (;;) {