]> sigrok.org Git - libsigrok.git/commitdiff
ipdbg-la: reduce warnings (added explicit casts)
authorEva Kissling <redacted>
Thu, 25 May 2017 22:25:05 +0000 (00:25 +0200)
committerUwe Hermann <redacted>
Wed, 29 Aug 2018 21:59:14 +0000 (23:59 +0200)
src/hardware/ipdbg-logic-analyser/protocol.c

index 2bff81e94462350b109eed4e9f1768316a07ba5e..e4bcd919b0bb9e4bb3183234d393b0f58166b47f 100644 (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));