From b3609ea014186eae7f9f9625d6eb18d862d50d4b Mon Sep 17 00:00:00 2001 From: lxsang Date: Wed, 1 Jan 2020 13:14:50 +0100 Subject: [PATCH] remove compile warning --- lib/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/list.c b/lib/list.c index bfe45d7..5141bbe 100644 --- a/lib/list.c +++ b/lib/list.c @@ -131,7 +131,7 @@ item_t list_item(int type) list_t split(const char* str, const char* delim) { if(str == NULL || delim == NULL) return NULL; - char* str_cpy = str; + char* str_cpy = (char*)str; char* token; list_t l = list_init(); while((token = strsep(&str_cpy,delim)))