From df9bf142503c27f832955492287220c28d8c0708 Mon Sep 17 00:00:00 2001 From: chl Date: Sun, 18 May 2014 05:08:07 +0000 Subject: replace some (type *)0 to NULL ok krw@ millert@ --- usr.sbin/edquota/edquota.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/edquota') 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); -- cgit v1.2.3-59-g8ed1b