X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fhantek-dso%2Fapi.c;h=d2eebfbe55754c74571d7f46313ee41d4846d9cd;hb=dcd438ee3523098201c7937e75e55775da3b506f;hp=253d37cdbe54bdb63d47ea7001a5928363dc8625;hpb=329733d92c5004f0fe308eff26b9537fded2cdf3;p=libsigrok.git diff --git a/src/hardware/hantek-dso/api.c b/src/hardware/hantek-dso/api.c index 253d37cd..d2eebfbe 100644 --- a/src/hardware/hantek-dso/api.c +++ b/src/hardware/hantek-dso/api.c @@ -169,7 +169,7 @@ static struct sr_dev_inst *dso_dev_new(const struct dso_profile *prof) struct sr_channel_group *cg; struct drv_context *drvc; struct dev_context *devc; - int i; + unsigned int i; sdi = g_malloc0(sizeof(struct sr_dev_inst)); sdi->status = SR_ST_INITIALIZING; @@ -434,8 +434,6 @@ static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *s const uint64_t *vdiv; int ch_idx; - (void)cg; - switch (key) { case SR_CONF_NUM_HDIV: *data = g_variant_new_int32(NUM_TIMEBASE);