summaryrefslogtreecommitdiff
path: root/src/df.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-06-19 04:21:49 +0000
committerJim Meyering <jim@meyering.net>1996-06-19 04:21:49 +0000
commitcfda609a21664425bf0f2a8bfafd480e4372334f (patch)
tree79efdb9a7dcd4c318fb50d7c58a1a8e3e887f784 /src/df.c
parent229598b807f4a62a39dcb08ef1c4c9ee9785f433 (diff)
downloadcoreutils-cfda609a21664425bf0f2a8bfafd480e4372334f.tar.xz
(selected_fstype, excluded_fstype, show_disk, main):
Use STREQ here instead of strcmp(...) == 0.
Diffstat (limited to 'src/df.c')
-rw-r--r--src/df.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/df.c b/src/df.c
index ef4976f1a..8f0d1fbe7 100644
--- a/src/df.c
+++ b/src/df.c
@@ -213,7 +213,7 @@ selected_fstype (const char *fstype)
if (fs_select_list == NULL || fstype == NULL)
return 1;
for (fsp = fs_select_list; fsp; fsp = fsp->fs_next)
- if (!strcmp (fstype, fsp->fs_name))
+ if (STREQ (fstype, fsp->fs_name))
return 1;
return 0;
}
@@ -229,7 +229,7 @@ excluded_fstype (const char *fstype)
if (fs_exclude_list == NULL || fstype == NULL)
return 0;
for (fsp = fs_exclude_list; fsp; fsp = fsp->fs_next)
- if (!strcmp (fstype, fsp->fs_name))
+ if (STREQ (fstype, fsp->fs_name))
return 1;
return 0;
}
@@ -353,7 +353,7 @@ show_disk (const char *disk)
struct mount_entry *me;
for (me = mount_list; me; me = me->me_next)
- if (!strcmp (disk, me->me_devname))
+ if (STREQ (disk, me->me_devname))
{
show_dev (me->me_devname, me->me_mountdir, me->me_type);
return;
@@ -595,7 +595,7 @@ with the portable output format"));
struct fs_type_list *j;
for (j = fs_exclude_list; j; j = j->fs_next)
{
- if (strcmp (i->fs_name, j->fs_name) == 0)
+ if (STREQ (i->fs_name, j->fs_name))
{
error (0, 0,
_("file system type `%s' both selected and excluded"),