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