From 7f7da2b5fc01f46d28236384540c7ecfdac16a63 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 11 Mar 2007 21:10:02 +0000 Subject: * Fix group comparison issue and associated compilation warnings by using the alpm strcmp operation which takes void* references. * We had this great visibility patch, but never actually took advantage of it. Added the right compile flag to make it work and added some more SYMEXPORTs where necessary to have a successful compile. --- lib/libalpm/alpm_list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/alpm_list.c') diff --git a/lib/libalpm/alpm_list.c b/lib/libalpm/alpm_list.c index 324c7d08..54027455 100644 --- a/lib/libalpm/alpm_list.c +++ b/lib/libalpm/alpm_list.c @@ -427,7 +427,7 @@ int SYMEXPORT alpm_list_count(const alpm_list_t *list) * @param haystack the list to search * @return 1 if `needle` is found, 0 otherwise */ -int alpm_list_find(alpm_list_t *haystack, const void *needle) +int SYMEXPORT alpm_list_find(alpm_list_t *haystack, const void *needle) { alpm_list_t *lp = haystack; while(lp) { @@ -446,7 +446,7 @@ int alpm_list_find(alpm_list_t *haystack, const void *needle) * @param haystack the list to search * @return 1 if `needle` is found, 0 otherwise */ -int alpm_list_find_str(alpm_list_t *haystack, const char *needle) +int SYMEXPORT alpm_list_find_str(alpm_list_t *haystack, const char *needle) { alpm_list_t *lp = haystack; while(lp) { -- cgit v1.2.3-24-g4f1b