]> git.ozlabs.org Git - ccan/blobdiff - ccan/strmap/test/run-prefix.c
strset, strmap: invert iterator function meaning.
[ccan] / ccan / strmap / test / run-prefix.c
index f6eb17796094a7c8aaf3e2e6d38857f06c07b4c9..9c5156e6e57dd8c7ba09d85a1ca43138341497b8 100644 (file)
@@ -12,14 +12,14 @@ static bool in_order(const char *index, char *value, unsigned int *count)
        ok1(i == atoi(value));
        ok1(*count == i);
        (*count)++;
-       return false;
+       return true;
 }
 
 static bool find_empty(const char *index, char *value, char *empty)
 {
        if (index == empty)
                pass("Found empty entry!");
-       return false;
+       return true;
 }
 
 int main(void)