aboutsummaryrefslogtreecommitdiff
path: root/sbin/quotacheck/preen.c
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 01:59:26 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-19 01:59:26 +0000
commitdeaa3563c895a293bdc9f93f9d5b789f1a505233 (patch)
treeea55513e949b3fa1a87020dd61a9cb84b0c32a14 /sbin/quotacheck/preen.c
parent028d447b5983bcbd7124ee008dbc52f9df674461 (diff)
downloadsrc-deaa3563c895a293bdc9f93f9d5b789f1a505233.tar.gz
src-deaa3563c895a293bdc9f93f9d5b789f1a505233.zip
getfsent(3) will return NULL on EOF or error.
MFC after: 2 weeks.
Notes
Notes: svn path=/head/; revision=298239
Diffstat (limited to 'sbin/quotacheck/preen.c')
-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 1c285ccae9ce..fd843e2ee0b2 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;