summaryrefslogtreecommitdiff
path: root/src/sp_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_list.c')
-rw-r--r--src/sp_list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp_list.c b/src/sp_list.c
index c798d6d..0f00371 100644
--- a/src/sp_list.c
+++ b/src/sp_list.c
@@ -10,7 +10,8 @@ void sp_list_free(sp_list_node *node) {
10 10
11// Thanks to https://en.wikipedia.org/wiki/Insertion_sort :> 11// Thanks to https://en.wikipedia.org/wiki/Insertion_sort :>
12sp_list_node *sp_list_sort(sp_list_node *pList, 12sp_list_node *sp_list_sort(sp_list_node *pList,
13 int (*cmp_func)(sp_list_node *, sp_list_node *)) { 13 int (*cmp_func)(sp_list_node const *const,
14 sp_list_node const *const)) {
14 sp_list_node *head = NULL; 15 sp_list_node *head = NULL;
15 16
16 if (pList == NULL || pList->next == NULL) { 17 if (pList == NULL || pList->next == NULL) {