You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by ab...@apache.org on 2020/03/25 07:19:27 UTC

[celix] branch feature/pubsub_inteceptors updated: Fixed incorrect else statement

This is an automated email from the ASF dual-hosted git repository.

abroekhuis pushed a commit to branch feature/pubsub_inteceptors
in repository https://gitbox.apache.org/repos/asf/celix.git


The following commit(s) were added to refs/heads/feature/pubsub_inteceptors by this push:
     new f61b491  Fixed incorrect else statement
f61b491 is described below

commit f61b49131b5b7ca6269901de1e9e5be3558b3a7f
Author: Alexander Broekhuis <al...@luminis.eu>
AuthorDate: Wed Mar 25 08:19:13 2020 +0100

    Fixed incorrect else statement
---
 libs/utils/src/array_list.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/utils/src/array_list.c b/libs/utils/src/array_list.c
index 665b0af..ac1e375 100644
--- a/libs/utils/src/array_list.c
+++ b/libs/utils/src/array_list.c
@@ -567,7 +567,7 @@ void celix_arrayList_clear(celix_array_list_t *list) {
 
 #if defined(__APPLE__)
 static int celix_arrayList_compare(void *arg, const void * a, const void *b) {
-#elif
+#else
 static int celix_arrayList_compare(const void * a, const void *b, void *arg) {
 #endif
     const celix_array_list_entry_t *aEntry = a;
@@ -581,7 +581,7 @@ static int celix_arrayList_compare(const void * a, const void *b, void *arg) {
 void celix_arrayList_sort(celix_array_list_t *list, celix_arrayList_sort_fp sortFp) {
 #if defined(__APPLE__)
     qsort_r(list->elementData, list->size, sizeof(celix_array_list_entry_t), sortFp, celix_arrayList_compare);
-#elif
+#else
     qsort_r(list->elementData, list->size, sizeof(celix_array_list_entry_t), celix_arrayList_compare, sortFp);
 #endif
 }