]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/pwupd.c
Sort sections.
[pw-darwin.git] / pw / pwupd.c
index 84226a90b300b73df246057583e899f485edb68f..7e0e3cfb0c2a982fbe9000518480ea59ad11d34e 100644 (file)
@@ -148,7 +148,7 @@ pw_update(struct passwd * pwd, char const * user, int mode)
         * Note: -C is only available in FreeBSD 2.2 and above
         */
 #ifdef HAVE_PWDB_C
-       if (pwdb("-C", NULL) == 0) {    /* Check only */
+       if (pwdb("-C", (char *)NULL) == 0) {    /* Check only */
 #else
        {                               /* No -C */
 #endif
@@ -185,7 +185,7 @@ pw_update(struct passwd * pwd, char const * user, int mode)
                                        rc = pwdb(NULL);
 #ifdef HAVE_PWDB_U
                                else
-                                       rc = pwdb("-u", user, NULL);
+                                       rc = pwdb("-u", user, (char *)NULL);
 #endif
                        }
                }