X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbeaglelogic%2Fbeaglelogic_tcp.c;h=9c32987bd23b3408876f20a92effc4e3fc326dfc;hb=f154b40dddbd954a9a21bf0f53ce01b3b8211de7;hp=2c303c976c1bef216e2f31cac7642a91eb3fe4f6;hpb=f7d7ee82dd1d88af807d4d8376d04a39baa53490;p=libsigrok.git diff --git a/src/hardware/beaglelogic/beaglelogic_tcp.c b/src/hardware/beaglelogic/beaglelogic_tcp.c index 2c303c97..9c32987b 100644 --- a/src/hardware/beaglelogic/beaglelogic_tcp.c +++ b/src/hardware/beaglelogic/beaglelogic_tcp.c @@ -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); } @@ -242,9 +242,6 @@ static int beaglelogic_open(struct dev_context *devc) { } static int beaglelogic_close(struct dev_context *devc) { - g_free(devc->address); - g_free(devc->port); - if (close(devc->socket) < 0) return SR_ERR; @@ -369,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; }