summaryrefslogtreecommitdiff
path: root/src/sp_list.c
diff options
context:
space:
mode:
authorjvoisin2020-11-06 17:05:40 +0100
committerjvoisin2020-11-06 17:05:40 +0100
commite6e6728fd04d7cbaeee7f8ef4733a77557786a8b (patch)
treea5f793eee3c561314b8ecfd75d0c3228d07f4a70 /src/sp_list.c
parent69459369754b07d3fa4379c2b60a5f8ba9fcd45d (diff)
Constify a bit more
Diffstat (limited to '')
-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) {