summaryrefslogtreecommitdiffstats
path: root/list.c
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2021-12-26 22:43:47 +0100
committerpgen <p.gen.progs@gmail.com>2021-12-26 22:43:47 +0100
commit1341af59fb5a3632ee660a98bd4256b6e156bfe4 (patch)
tree643820f9f54fd96876a77340ffacd2b02a23cdd9 /list.c
parent68790618f37e0e4013cb741fe61dc7ddb5a78937 (diff)
Make ll_quicksort static in list
Diffstat (limited to 'list.c')
-rw-r--r--list.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/list.c b/list.c
index 71d03f3..e561f8f 100644
--- a/list.c
+++ b/list.c
@@ -26,6 +26,10 @@ static ll_node_t *
ll_partition(ll_node_t * l, ll_node_t * h, int (*comp)(void *, void *),
void (*swap)(void *, void *));
+static void
+ll_quicksort(ll_node_t * l, ll_node_t * h, int (*comp)(void *, void *),
+ void (*swap)(void * a, void *));
+
/* ========================== */
/* Creates a new linked list. */
/* ========================== */
@@ -218,7 +222,7 @@ ll_partition(ll_node_t * l, ll_node_t * h, int (*comp)(void *, void *),
/* Based on code found here: */
/* http://www.geeksforgeeks.org/quicksort-for-linked-list */
/* ======================================================== */
-void
+static void
ll_quicksort(ll_node_t * l, ll_node_t * h, int (*comp)(void *, void *),
void (*swap)(void * a, void *))
{