From 17975b688c0fdc69b23d63ac286b11ef61f295b4 Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Sat, 22 Sep 2007 12:37:27 +0000 Subject: Use a typedef for the function pointers to comparison functions, add newline at end of file svn path=/trunk/dom/; revision=3564 --- test/list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/list.c') diff --git a/test/list.c b/test/list.c index f94b408..2c742fa 100644 --- a/test/list.c +++ b/test/list.c @@ -58,8 +58,7 @@ void list_add(struct list* list, void* data) list->size++; } -bool list_contains(struct list* list, void* data, - int (*comparator)(const void* a, const void* b)) +bool list_contains(struct list* list, void* data, list_compare_func comparator) { struct list_elt* elt = list->head; while (elt != NULL) { @@ -72,7 +71,7 @@ bool list_contains(struct list* list, void* data, } bool list_contains_all(struct list* superList, struct list* subList, - int (*comparator)(const void* a, const void* b)) + list_compare_func comparator) { struct list_elt* elt = subList->head; while (elt != NULL) { @@ -83,3 +82,4 @@ bool list_contains_all(struct list* superList, struct list* subList, } return true; } + -- cgit v1.2.3