diff options
| author | @syxhe <https://t.me/syxhe> | 2025-05-14 12:19:34 -0500 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-05-14 12:19:34 -0500 |
| commit | 928238bdcbc78c4196eb4a3508808c79e31f7c84 (patch) | |
| tree | 6ce7c393be64ba26c54f9f5f8d3fa442c6f5833d /src/ll.c | |
| parent | 9be8b5f26a29dad04035386331461c4c320f9237 (diff) | |
Update signatures of free-type functions to match the freecallback signature
Diffstat (limited to 'src/ll.c')
| -rw-r--r-- | src/ll.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -19,10 +19,11 @@ dlinkedlist * dlinkedlist_init(void) { | |||
| 19 | return ll; | 19 | return ll; |
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | void dlinkedlist_free(dlinkedlist *ll) { | 22 | void dlinkedlist_free(void *dll) { |
| 23 | if(!ll) | 23 | if(!dll) |
| 24 | return; | 24 | return; |
| 25 | 25 | ||
| 26 | dlinkedlist *ll = (dlinkedlist *)dll; | ||
| 26 | for(dllnode *current = ll->start, *next; current != NULL; ) { | 27 | for(dllnode *current = ll->start, *next; current != NULL; ) { |
| 27 | next = current->next; | 28 | next = current->next; |
| 28 | 29 | ||
