summaryrefslogtreecommitdiff
path: root/src/test/test-fdset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-fdset.c')
-rw-r--r--src/test/test-fdset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test-fdset.c b/src/test/test-fdset.c
index fb9d397569..212fe0dbd4 100644
--- a/src/test/test-fdset.c
+++ b/src/test/test-fdset.c
@@ -115,7 +115,6 @@ static void test_fdset_iterate(void) {
int fd = -1;
FDSet *fdset = NULL;
char name[] = "/tmp/test-fdset_iterate.XXXXXX";
- Iterator i;
int c = 0;
int a;
@@ -128,7 +127,7 @@ static void test_fdset_iterate(void) {
assert_se(fdset_put(fdset, fd) >= 0);
assert_se(fdset_put(fdset, fd) >= 0);
- FDSET_FOREACH(a, fdset, i) {
+ FDSET_FOREACH(a, fdset) {
c++;
assert_se(a == fd);
}