]> diplodocus.org Git - nmh/commitdiff
Replace `(char *)0' et al with `NULL'.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 22:27:12 +0000 (23:27 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 22:27:12 +0000 (23:27 +0100)
None of them are vararg parameters.

uip/install-mh.c

index ce76638..7086533 100644 (file)
@@ -80,8 +80,8 @@ main (int argc, char **argv)
      * the home directory field in the password file if that's not found.
      */
 
-    if ((mypath = getenv("HOME")) == (char *)0) {
-       if ((pw = getpwuid(getuid())) == (struct passwd *)0 || *pw->pw_dir == '\0')
+    if ((mypath = getenv("HOME")) == NULL) {
+       if ((pw = getpwuid(getuid())) == NULL || *pw->pw_dir == '\0')
            adios(NULL, "cannot determine your home directory");
        else
            mypath = pw->pw_dir;