From bd494716576aebc14ca6647f23163fd56b230e58 Mon Sep 17 00:00:00 2001 From: Erayd Date: Fri, 22 May 2015 10:01:34 +1200 Subject: [PATCH] Don't return a value from a void function --- src/libec/misc/skiplist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libec/misc/skiplist.c b/src/libec/misc/skiplist.c index d21d5e7..7af8ca9 100644 --- a/src/libec/misc/skiplist.c +++ b/src/libec/misc/skiplist.c @@ -131,7 +131,7 @@ int ec_sl_set(ec_sl_t *l, void *key, void *data, ec_sl_freefn_t freefn) { */ void ec_sl_remove(ec_sl_t *l, void *key, ec_sl_freefn_t freefn) { if(!key) - return NULL; + return; ec_sl_cursor_t c; ec_sl_cursor(l, &c, key); ec_sl_node_t *n = c[1]->next;