projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only show file systems of interest
[unix-history]
/
usr
/
src
/
bin
/
df
/
df.c
diff --git
a/usr/src/bin/df/df.c
b/usr/src/bin/df/df.c
index
5552d06
..
f245bdc
100644
(file)
--- a/
usr/src/bin/df/df.c
+++ b/
usr/src/bin/df/df.c
@@
-1,5
+1,5
@@
#ifndef lint
#ifndef lint
-static char *sccsid = "@(#)df.c 4.1
4
%G%";
+static char *sccsid = "@(#)df.c 4.1
5
%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);