only show file systems of interest
[unix-history] / usr / src / bin / df / df.c
index 5552d06..f245bdc 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)df.c        4.14 %G%";
+static char *sccsid = "@(#)df.c        4.15 %G%";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -67,8 +67,8 @@ main(argc, argv)
                if (setfsent() == 0)
                        perror(FSTAB), exit(1);
                while (fsp = getfsent()) {
                if (setfsent() == 0)
                        perror(FSTAB), exit(1);
                while (fsp = getfsent()) {
-                       if (!strcmp(fsp->fs_type, FSTAB_RW) &&
-                           !(strcmp(fsp->fs_type, FSTAB_RO)))
+                       if (strcmp(fsp->fs_type, FSTAB_RW) &&
+                           strcmp(fsp->fs_type, FSTAB_RO))
                                continue;
                        if (root[0] == 0)
                                (void) strcpy(root, fsp->fs_spec);
                                continue;
                        if (root[0] == 0)
                                (void) strcpy(root, fsp->fs_spec);