ipdbg-la: reduce warnings (added explicit casts)

This commit is contained in:
Eva Kissling 2017-05-26 00:25:05 +02:00 committed by Uwe Hermann
parent a4210e1890
commit d37c6daa84
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ SR_PRIV int ipdbg_org_la_tcp_send(struct ipdbg_org_la_tcp *tcp, const uint8_t *b
{
int out;
out = send(tcp->socket, buf, len, 0);
out = send(tcp->socket, (char*)buf, len, 0);
if (out < 0) {
sr_err("Send error: %s", g_strerror(errno));
@ -142,7 +142,7 @@ SR_PRIV int ipdbg_org_la_tcp_receive(struct ipdbg_org_la_tcp *tcp, uint8_t *buf,
int len;
len = recv(tcp->socket, buf+received, bufsize-received, 0);
len = recv(tcp->socket, (char*)(buf+received), bufsize-received, 0);
if (len < 0) {
sr_err("Receive error: %s", g_strerror(errno));