diff options
author | chl <chl@openbsd.org> | 2014-05-18 05:08:07 +0000 |
---|---|---|
committer | chl <chl@openbsd.org> | 2014-05-18 05:08:07 +0000 |
commit | df9bf142503c27f832955492287220c28d8c0708 (patch) | |
tree | f65f878fc62d364a2c01d73e7a7fd80a35f6e2e8 /usr.sbin/edquota | |
parent | One more mistake introduced in 1.65 (diff) | |
download | wireguard-openbsd-df9bf142503c27f832955492287220c28d8c0708.tar.xz wireguard-openbsd-df9bf142503c27f832955492287220c28d8c0708.zip |
replace some (type *)0 to NULL
ok krw@ millert@
Diffstat (limited to 'usr.sbin/edquota')
-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); |