mirror of
https://github.com/lxsang/ant-http
synced 2024-12-27 09:18:22 +01:00
fix
This commit is contained in:
parent
8618c9ebf5
commit
44e67913b5
@ -69,7 +69,7 @@ int response(void* client, const char* data)
|
|||||||
nbytes = antd_send(client, buf, strlen(buf));
|
nbytes = antd_send(client, buf, strlen(buf));
|
||||||
return (nbytes ==-1?0:1);
|
return (nbytes ==-1?0:1);
|
||||||
}
|
}
|
||||||
int antd_send(const void *src, const void* data, int len)
|
int antd_send(void *src, const void* data, int len)
|
||||||
{
|
{
|
||||||
if(!src || !data) return -1;
|
if(!src || !data) return -1;
|
||||||
int ret;
|
int ret;
|
||||||
@ -93,7 +93,7 @@ int antd_send(const void *src, const void* data, int len)
|
|||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
int antd_recv(const void *src, void* data, int len)
|
int antd_recv(void *src, void* data, int len)
|
||||||
{
|
{
|
||||||
if(!src) return -1;
|
if(!src) return -1;
|
||||||
int ret;
|
int ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user