summaryrefslogtreecommitdiffstats
path: root/sbin/quotacheck
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-19 01:59:26 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-19 01:59:26 +0000
commit542e67e53d17c3e11b0340a2e73e4bb37545ce2d (patch)
treeea55513e949b3fa1a87020dd61a9cb84b0c32a14 /sbin/quotacheck
parenteeb0fb82dcf0adb95bd4dd940b6f0f6f49b47534 (diff)
downloadFreeBSD-src-542e67e53d17c3e11b0340a2e73e4bb37545ce2d.zip
FreeBSD-src-542e67e53d17c3e11b0340a2e73e4bb37545ce2d.tar.gz
getfsent(3) will return NULL on EOF or error.
MFC after: 2 weeks.
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r--sbin/quotacheck/preen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/quotacheck/preen.c b/sbin/quotacheck/preen.c
index 1c285cc..fd843e2 100644
--- a/sbin/quotacheck/preen.c
+++ b/sbin/quotacheck/preen.c
@@ -105,7 +105,7 @@ checkfstab(int uflag, int gflag)
warnx("Can't open checklist file: %s\n", _PATH_FSTAB);
return (8);
}
- while ((fs = getfsent()) != 0) {
+ while ((fs = getfsent()) != NULL) {
if (fs->fs_passno > passno && fs->fs_passno < nextpass)
nextpass = fs->fs_passno;
OpenPOWER on IntegriCloud