nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 2157fd46a333bd137588043a8d98ad5eceb4ef37
parent 53ef110fab960fdf97f498a0f9a6b8d58f40d7f5
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 29 Sep 2019 21:19:10 -0400

nserver/src/darray_algos.c: Update DArray_fucked_heapsort_swap.

nserver/src/darray_algos.c (DArray_fucked_heapsort_swap): Make
function static.

Diffstat:
nserver/src/darray_algos.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nserver/src/darray_algos.c b/nserver/src/darray_algos.c @@ -86,7 +86,7 @@ int DArray_fucked_qsort(DArray *array, DArray_compare cmp) #define DArray_fucked_heapsort_ileft_child(i) ((2*i + 1)) #define DArray_fucked_heapsort_iright_child(i) ((2*i + 2)) -inline void DArray_fucked_heapsort_swap(DArray *array, int a, int b) +static inline void DArray_fucked_heapsort_swap(DArray *array, int a, int b) { void *tmp = array->contents[a]; array->contents[a] = array->contents[b];