svn commit: r298239 - head/sbin/quotacheck
Marcelo Araujo
araujo at FreeBSD.org
Tue Apr 19 01:59:27 UTC 2016
Author: araujo
Date: Tue Apr 19 01:59:26 2016
New Revision: 298239
URL: https://svnweb.freebsd.org/changeset/base/298239
Log:
getfsent(3) will return NULL on EOF or error.
MFC after: 2 weeks.
Modified:
head/sbin/quotacheck/preen.c
Modified: head/sbin/quotacheck/preen.c
==============================================================================
--- head/sbin/quotacheck/preen.c Tue Apr 19 01:57:56 2016 (r298238)
+++ head/sbin/quotacheck/preen.c Tue Apr 19 01:59:26 2016 (r298239)
@@ -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;
More information about the svn-src-all
mailing list