Blame clibs-list-c99.patch

17e6b17
test: Fix type of User_equal
17e6b17
17e6b17
The match function has void * arguments, not User * arguments. This
17e6b17
avoids an implicit function pointer type conversion in test_list_find,
17e6b17
which is not accepted by all compilers anymore.
17e6b17
17e6b17
Submitted upstream: <https://github.com/clibs/list/pull/47>
17e6b17
17e6b17
diff --git a/test.c b/test.c
17e6b17
index 32fa0f3662c0dfab..0323c6f06e8e6d1a 100644
17e6b17
--- a/test.c
17e6b17
+++ b/test.c
17e6b17
@@ -25,7 +25,9 @@ typedef struct {
17e6b17
 } User;
17e6b17
 
17e6b17
 static int
17e6b17
-User_equal(User *a, User *b) {
17e6b17
+User_equal(void *a1, void *b1) {
17e6b17
+  User *a = a1;
17e6b17
+  User *b = b1;
17e6b17
   return 0 == strcmp(a->name, b->name);
17e6b17
 }
17e6b17