]> sigrok.org Git - libsigrok.git/commitdiff
beaglelogic: Fix compiler warnings in beaglelogic_tcp.c
authorKumar Abhishek <redacted>
Sat, 23 Sep 2017 07:00:33 +0000 (12:30 +0530)
committerUwe Hermann <redacted>
Tue, 26 Sep 2017 16:14:46 +0000 (18:14 +0200)
Signed-off-by: Kumar Abhishek <redacted>
src/hardware/beaglelogic/beaglelogic_tcp.c

index b3fcb0ab166c2d8e526c6f17773410c06b72d2ce..9c32987bd23b3408876f20a92effc4e3fc326dfc 100644 (file)
@@ -108,7 +108,7 @@ static int beaglelogic_tcp_send_cmd(struct dev_context *devc,
        }
 
        if (out < (int)strlen(buf)) {
-               sr_dbg("Only sent %d/%d bytes of command: '%s'.", out,
+               sr_dbg("Only sent %d/%lu bytes of command: '%s'.", out,
                       strlen(buf), buf);
        }
 
@@ -366,7 +366,7 @@ static int beaglelogic_set_bufunitsize(struct dev_context *devc) {
 }
 
 static int dummy(struct dev_context *devc) {
-       (devc);
+       (void)devc;
        return SR_ERR_NA;
 }