diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2014-05-18 05:08:08 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2014-05-18 05:08:08 +0000 |
commit | cb1877bfc19ede595d1eb25b211fd164c1372559 (patch) | |
tree | a3dc66819b55b523520fa1b80c86e93de36f9040 | |
parent | bf33a035a2af416057b6a7ab212a76c1d1150c1a (diff) |
replace some (type *)0 to NULL
ok krw@ millert@
-rw-r--r-- | usr.sbin/edquota/edquota.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c index 00c83dadce4..e5ff38c38ab 100644 --- a/usr.sbin/edquota/edquota.c +++ b/usr.sbin/edquota/edquota.c @@ -242,7 +242,7 @@ getprivs(u_int id, int quotatype) size_t qfpathnamelen; setfsent(); - quphead = (struct quotause *)0; + quphead = NULL; qcmd = QCMD(Q_GETQUOTA, quotatype); while ((fs = getfsent())) { if (strcmp(fs->fs_vfstype, "ffs") && @@ -310,7 +310,7 @@ getprivs(u_int id, int quotatype) else quptail->next = qup; quptail = qup; - qup->next = 0; + qup->next = NULL; } endfsent(); return(quphead); @@ -450,7 +450,7 @@ readprivs(struct quotause *quplist, int infd) warnx("%s: bad format", line1); return(0); } - if ((cp = strtok((char *)0, "\n")) == NULL) { + if ((cp = strtok(NULL, "\n")) == NULL) { warnx("%s: %s: bad format", fsp, &fsp[strlen(fsp) + 1]); return(0); } @@ -587,7 +587,7 @@ readtimes(struct quotause *quplist, int infd) warnx("%s: bad format", line1); return(0); } - if ((cp = strtok((char *)0, "\n")) == NULL) { + if ((cp = strtok(NULL, "\n")) == NULL) { warnx("%s: %s: bad format", fsp, &fsp[strlen(fsp) + 1]); return(0); |