aboutsummaryrefslogtreecommitdiffstats
path: root/tests/df/skip-duplicates.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/df/skip-duplicates.sh')
-rwxr-xr-xtests/df/skip-duplicates.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/df/skip-duplicates.sh b/tests/df/skip-duplicates.sh
index 644f2e027..f97f794f5 100755
--- a/tests/df/skip-duplicates.sh
+++ b/tests/df/skip-duplicates.sh
@@ -49,8 +49,6 @@ cat > k.c <<EOF || framework_failure_
#include <stdarg.h>
#include <dlfcn.h>
-#define STREQ(a, b) (strcmp (a, b) == 0)
-
int open(const char *path, int flags, ...)
{
static int (*open_func)(const char *, int, ...);
@@ -77,7 +75,7 @@ int open(const char *path, int flags, ...)
/* Returning ENOENT here will get read_file_system_list()
to fall back to using getmntent() below. */
- if (STREQ (path, "/proc/self/mountinfo"))
+ if (streq (path, "/proc/self/mountinfo"))
{
errno = ENOENT;
return -1;
@@ -86,8 +84,6 @@ int open(const char *path, int flags, ...)
return open_func(path, flags, mode);
}
-#define STREQ(a, b) (strcmp (a, b) == 0)
-
struct mntent *getmntent (FILE *fp)
{
static char *nonroot_fs;
@@ -132,9 +128,9 @@ struct mntent *getmntent (FILE *fp)
mntents[done-2].mnt_type = "-";
if (!mntents[done-2].mnt_opts)
mntents[done-2].mnt_opts = "-";
- if (STREQ (mntents[done-2].mnt_dir, "/NONROOT"))
+ if (streq (mntents[done-2].mnt_dir, "/NONROOT"))
mntents[done-2].mnt_dir = nonroot_fs;
- if (STREQ (mntents[done-2].mnt_dir, "/REMOTE"))
+ if (streq (mntents[done-2].mnt_dir, "/REMOTE"))
{
if (!remote_fs || !*remote_fs)
continue;