From eb21eed294df1be56bce4bf8ecf16a4c65e7f12f Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Wed, 19 Oct 2016 23:27:12 +0100 Subject: [PATCH] Replace `(char *)0' et al with `NULL'. None of them are vararg parameters. --- uip/install-mh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uip/install-mh.c b/uip/install-mh.c index ce766380..70865337 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -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; -- 2.56.0