]> sigrok.org Git - libsigrok.git/commitdiff
Fix two compiler warnings.
authorUwe Hermann <redacted>
Sat, 23 Apr 2016 15:37:01 +0000 (17:37 +0200)
committerUwe Hermann <redacted>
Sat, 23 Apr 2016 15:37:45 +0000 (17:37 +0200)
src/hardware/hameg-hmo/protocol.c
src/scpi/scpi_vxi.c

index bd2174a746cd6949759977e6bd0e8fcf96e1069a..a073d0de60bea7f71f421cc070b7c2263cbdd802 100644 (file)
@@ -734,6 +734,7 @@ SR_PRIV int hmo_receive_data(int fd, int revents, void *cb_data)
        struct sr_datafeed_logic logic;
 
        (void)fd;
+       (void)revents;
 
        data = NULL;
 
index 9f6b2c356ea1444ce4def493014fca4766e1ef0d..b61ced01f2cd15cf0322646062a52aa6ca6abbde 100644 (file)
@@ -127,7 +127,7 @@ static int scpi_vxi_send(void *priv, const char *command)
        write_parms.lock_timeout  = VXI_DEFAULT_TIMEOUT_MS;
        write_parms.flags         = DF_END;
        write_parms.data.data_len = MIN(len, vxi->max_send_size);
-       write_parms.data.data_val = command;
+       write_parms.data.data_val = (char *)command;
 
        if (!(write_resp = device_write_1(&write_parms, vxi->client))
            || write_resp->error) {