From: Eva Kissling Date: Thu, 25 May 2017 22:25:05 +0000 (+0200) Subject: ipdbg-la: reduce warnings (added explicit casts) X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d37c6daa849c22275a5934d7bc05255126079fb9;p=libsigrok.git ipdbg-la: reduce warnings (added explicit casts) --- diff --git a/src/hardware/ipdbg-logic-analyser/protocol.c b/src/hardware/ipdbg-logic-analyser/protocol.c index 2bff81e9..e4bcd919 100644 --- a/src/hardware/ipdbg-logic-analyser/protocol.c +++ b/src/hardware/ipdbg-logic-analyser/protocol.c @@ -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));