[BACK]Return to fstab.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/fstab.c between version 1.28 and 1.31

version 1.28, 2006/08/12 23:49:54 version 1.31, 2012/03/13 21:13:34
Line 63  static size_t _fs_lineno = 0;
Line 63  static size_t _fs_lineno = 0;
 static const char *_fs_file = _PATH_FSTAB;  static const char *_fs_file = _PATH_FSTAB;
 static struct fstab _fs_fstab;  static struct fstab _fs_fstab;
   
 static int fstabscan __P((void));  
   
 static char *nextfld(char **, const char *);  static char *nextfld(char **, const char *);
 static int fstabscan(void);  static int fstabscan(void);
   
Line 98  fstabscan(void)
Line 96  fstabscan(void)
   
         (void)memset(&_fs_fstab, 0, sizeof(_fs_fstab));          (void)memset(&_fs_fstab, 0, sizeof(_fs_fstab));
         for (;;) {          for (;;) {
                 if (!(lp = fgets(line, sizeof(line), _fs_fp)))                  if (!(lp = fgets(line, (int)sizeof(line), _fs_fp)))
                         return 0;                          return 0;
                 _fs_lineno++;                  _fs_lineno++;
 /* OLD_STYLE_FSTAB */  /* OLD_STYLE_FSTAB */
Line 216  setfsent(void)
Line 214  setfsent(void)
                 rewind(_fs_fp);                  rewind(_fs_fp);
                 return 1;                  return 1;
         }          }
         if ((_fs_fp = fopen(_PATH_FSTAB, "r")) == NULL) {          if ((_fs_fp = fopen(_PATH_FSTAB, "re")) == NULL) {
                 warn("Cannot open `%s'", _PATH_FSTAB);                  warn("Cannot open `%s'", _PATH_FSTAB);
                 return 0;                  return 0;
         }          }

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.31

CVSweb <webmaster@jp.NetBSD.org>