summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/tests/gen/ftw_test.c1
-rw-r--r--lib/libc/tests/gen/popen_test.c6
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/tests/gen/ftw_test.c b/lib/libc/tests/gen/ftw_test.c
index a778eca..b120f01 100644
--- a/lib/libc/tests/gen/ftw_test.c
+++ b/lib/libc/tests/gen/ftw_test.c
@@ -49,7 +49,6 @@ extern char **environ;
static char template[] = "testftw.XXXXXXXXXX";
static char dir[PATH_MAX];
-static int failures;
static int ftwflags;
static int
diff --git a/lib/libc/tests/gen/popen_test.c b/lib/libc/tests/gen/popen_test.c
index 73f72e1..5c615b7 100644
--- a/lib/libc/tests/gen/popen_test.c
+++ b/lib/libc/tests/gen/popen_test.c
@@ -71,7 +71,7 @@ check_cloexec(FILE *fp, const char *mode)
ATF_TC_WITHOUT_HEAD(popen_all_modes_test);
ATF_TC_BODY(popen_all_modes_test, tc)
{
- FILE *fp, *fp2;
+ FILE *fp;
int i, status;
const char *mode;
const char *allmodes[] = { "r", "w", "r+", "re", "we", "r+e", "re+" };
@@ -92,7 +92,7 @@ ATF_TC_BODY(popen_all_modes_test, tc)
ATF_TC_WITHOUT_HEAD(popen_rmodes_test);
ATF_TC_BODY(popen_rmodes_test, tc)
{
- FILE *fp, *fp2;
+ FILE *fp;
const char *rmodes[] = { "r", "r+", "re", "r+e", "re+" };
const char *mode;
char buf[80];
@@ -211,7 +211,7 @@ ATF_TC_WITHOUT_HEAD(popen_rwmodes_test);
ATF_TC_BODY(popen_rwmodes_test, tc)
{
const char *rwmodes[] = { "r+", "r+e", "re+" };
- FILE *fp, *fp2;
+ FILE *fp;
const char *mode;
char *sres;
char buf[80];
OpenPOWER on IntegriCloud