summaryrefslogtreecommitdiffstats
path: root/list.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2022-06-20 00:31:02 +0200
committerpgen <p.gen.progs@gmail.com>2022-06-20 01:06:52 +0200
commit6bc96ccc668003af9ca2d3056792ac783277faba (patch)
treed8f41a64f60db3e14636f5d102cdbe41dc9d82bd /list.h
parent57e04fef7b7ee198818ae06a07f418c11faedd7a (diff)
Various small changes
- add/fix const keyword. - add comments. - rename variables.
Diffstat (limited to 'list.h')
-rw-r--r--list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/list.h b/list.h
index 19efd10..125c318 100644
--- a/list.h
+++ b/list.h
@@ -53,14 +53,14 @@ ll_insert_after(ll_t * const list, ll_node_t * node, void * const data);
#endif
void
-ll_sort(ll_t * list, int (*comp)(void *, void *),
+ll_sort(ll_t * list, int (*comp)(void const *, void const *),
void (*swap)(void **, void **));
int
ll_delete(ll_t * const list, ll_node_t * node);
ll_node_t *
-ll_find(ll_t * const, void * const, int (*)(const void *, const void *));
+ll_find(ll_t * const, void * const, int (*)(void const *, void const *));
void
ll_init(ll_t * list);