summaryrefslogtreecommitdiff
path: root/usr.sbin/edquota/edquota.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/edquota/edquota.c')
-rw-r--r--usr.sbin/edquota/edquota.c8
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);