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;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to