Fix two compiler warnings.
This commit is contained in:
parent
f4f273ce1e
commit
f07298663f
|
@ -734,6 +734,7 @@ SR_PRIV int hmo_receive_data(int fd, int revents, void *cb_data)
|
||||||
struct sr_datafeed_logic logic;
|
struct sr_datafeed_logic logic;
|
||||||
|
|
||||||
(void)fd;
|
(void)fd;
|
||||||
|
(void)revents;
|
||||||
|
|
||||||
data = NULL;
|
data = NULL;
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ static int scpi_vxi_send(void *priv, const char *command)
|
||||||
write_parms.lock_timeout = VXI_DEFAULT_TIMEOUT_MS;
|
write_parms.lock_timeout = VXI_DEFAULT_TIMEOUT_MS;
|
||||||
write_parms.flags = DF_END;
|
write_parms.flags = DF_END;
|
||||||
write_parms.data.data_len = MIN(len, vxi->max_send_size);
|
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))
|
if (!(write_resp = device_write_1(&write_parms, vxi->client))
|
||||||
|| write_resp->error) {
|
|| write_resp->error) {
|
||||||
|
|
Loading…
Reference in New Issue