mirror of
https://github.com/lxsang/ant-http
synced 2024-12-25 16:28:21 +01:00
remove compile warning
This commit is contained in:
parent
91d84baf01
commit
b3609ea014
@ -131,7 +131,7 @@ item_t list_item(int type)
|
|||||||
list_t split(const char* str, const char* delim)
|
list_t split(const char* str, const char* delim)
|
||||||
{
|
{
|
||||||
if(str == NULL || delim == NULL) return NULL;
|
if(str == NULL || delim == NULL) return NULL;
|
||||||
char* str_cpy = str;
|
char* str_cpy = (char*)str;
|
||||||
char* token;
|
char* token;
|
||||||
list_t l = list_init();
|
list_t l = list_init();
|
||||||
while((token = strsep(&str_cpy,delim)))
|
while((token = strsep(&str_cpy,delim)))
|
||||||
|
Loading…
Reference in New Issue
Block a user