X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ftondaj-sl-814%2Fapi.c;h=36ec5c2635d9dba3110e7c03d1dca82969710066;hb=0e94d524c19fe89c564243421d37c17818f87631;hp=da88bd070d479939db147dde54938d7c8da2e49c;hpb=7c8a9e1e0fada5d726bce638cf4d36147ed4ebbf;p=libsigrok.git diff --git a/hardware/tondaj-sl-814/api.c b/hardware/tondaj-sl-814/api.c index da88bd07..36ec5c26 100644 --- a/hardware/tondaj-sl-814/api.c +++ b/hardware/tondaj-sl-814/api.c @@ -144,11 +144,7 @@ static GSList *hw_scan(GSList *options) static GSList *hw_dev_list(void) { - struct drv_context *drvc; - - drvc = di->priv; - - return drvc->instances; + return ((struct drv_context *)(di->priv))->instances; } static int hw_dev_open(struct sr_dev_inst *sdi)