[BACK]Return to nfsstat.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / nfsstat

Diff for /src/usr.bin/nfsstat/nfsstat.c between version 1.15 and 1.16

version 1.15, 2003/01/15 21:25:44 version 1.16, 2003/01/15 22:20:15
Line 161 
Line 161 
                 if (sysctl(mib, 3, &nfs_id, &len, NULL, 0))                  if (sysctl(mib, 3, &nfs_id, &len, NULL, 0))
                         err(1, "sysctl: VFS_MAXTYPENUM");                          err(1, "sysctl: VFS_MAXTYPENUM");
   
                 do {                  for (; nfs_id; nfs_id--) {
                         struct vfsconf vfsc;                          struct vfsconf vfsc;
   
                         mib[0] = CTL_VFS;                          mib[0] = CTL_VFS;
Line 175 
Line 175 
   
                         if (!strcmp(vfsc.vfc_name, MOUNT_NFS))                          if (!strcmp(vfsc.vfc_name, MOUNT_NFS))
                                 break;                                  break;
                 } while (--nfs_id);                  }
                   if (nfs_id == 0)
                 if (nfs_id < 0)  
                         errx(1, "cannot find nfs filesystem id");                          errx(1, "cannot find nfs filesystem id");
         }          }
   

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16