summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/proc/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/proc/read.c')
-rw-r--r--tools/testing/selftests/proc/read.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/tools/testing/selftests/proc/read.c b/tools/testing/selftests/proc/read.c
index 1e73c2232097..563e752e6eba 100644
--- a/tools/testing/selftests/proc/read.c
+++ b/tools/testing/selftests/proc/read.c
@@ -31,22 +31,7 @@
#include <fcntl.h>
#include <unistd.h>
-static inline bool streq(const char *s1, const char *s2)
-{
- return strcmp(s1, s2) == 0;
-}
-
-static struct dirent *xreaddir(DIR *d)
-{
- struct dirent *de;
-
- errno = 0;
- de = readdir(d);
- if (!de && errno != 0) {
- exit(1);
- }
- return de;
-}
+#include "proc.h"
static void f_reg(DIR *d, const char *filename)
{
OpenPOWER on IntegriCloud