diff options
| author | Ben Fuhrmannek | 2021-02-16 11:16:59 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-02-16 11:16:59 +0100 |
| commit | 5484bcb5eb2714e7438927e2566c86a74d7c51af (patch) | |
| tree | b78326d2999397be4c08e06b23209981f82a4ea9 /src/sp_list.c | |
| parent | 7ac1e3866ef4f146c6c93a5ca13b9aebb14e936a (diff) | |
| parent | cecfdd808da67be908dbe7144cc8c74dfb3f855e (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/sp_list.c')
| -rw-r--r-- | src/sp_list.c | 3 |
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 :> |
| 12 | sp_list_node *sp_list_sort(sp_list_node *pList, | 12 | sp_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) { |
