hwdriver.c: Fix two scan-build warnings.
src/hwdriver.c: In function ‘log_key’: src/hwdriver.c:648:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] opstr = op == SR_CONF_GET ? "get" : op == SR_CONF_SET ? "set" : "list"; ^~ src/hwdriver.c: In function ‘check_key’: src/hwdriver.c:681:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] opstr = op == SR_CONF_GET ? "get" : op == SR_CONF_SET ? "set" : "list"; ^~
This commit is contained in:
parent
b4580cb9d0
commit
090f1e1e54
|
@ -635,7 +635,8 @@ SR_PRIV int sr_dev_acquisition_stop(struct sr_dev_inst *sdi)
|
|||
}
|
||||
|
||||
static void log_key(const struct sr_dev_inst *sdi,
|
||||
const struct sr_channel_group *cg, uint32_t key, int op, GVariant *data)
|
||||
const struct sr_channel_group *cg, uint32_t key, unsigned int op,
|
||||
GVariant *data)
|
||||
{
|
||||
const char *opstr;
|
||||
const struct sr_key_info *srci;
|
||||
|
@ -657,7 +658,7 @@ static void log_key(const struct sr_dev_inst *sdi,
|
|||
|
||||
static int check_key(const struct sr_dev_driver *driver,
|
||||
const struct sr_dev_inst *sdi, const struct sr_channel_group *cg,
|
||||
uint32_t key, int op, GVariant *data)
|
||||
uint32_t key, unsigned int op, GVariant *data)
|
||||
{
|
||||
const struct sr_key_info *srci;
|
||||
gsize num_opts, i;
|
||||
|
|
Loading…
Reference in New Issue