From: Bert Vermeulen Date: Tue, 23 Sep 2014 20:38:29 +0000 (+0200) Subject: Make sure to treat all config keys as uint32_t. X-Git-Tag: sigrok-cli-0.6.0~62 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=131ae8d0e37293eb71c3c043ff585321afc3a546;p=sigrok-cli.git Make sure to treat all config keys as uint32_t. --- diff --git a/show.c b/show.c index 7670d2c..4c872a2 100644 --- a/show.c +++ b/show.c @@ -207,8 +207,8 @@ void show_dev_detail(void) uint64_t cur_low, cur_high; const uint32_t *opts; const int32_t *int32; - uint32_t key; - unsigned int num_devices, o, i; + uint32_t key, o; + unsigned int num_devices, i; char *tmp_str, *s, c; const char **stropts; @@ -278,7 +278,7 @@ void show_dev_detail(void) printf(" on channel group %s", channel_group->name); } printf(":\n"); - opts = g_variant_get_fixed_array(gvar_opts, &num_opts, sizeof(int32_t)); + opts = g_variant_get_fixed_array(gvar_opts, &num_opts, sizeof(uint32_t)); for (o = 0; o < num_opts; o++) { key = opts[o] & SR_CONF_MASK; if (!(srci = sr_config_info_get(key)))