X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fdemo%2Fdemo.c;h=adf873043570617cd3eebe9b599db41a9893ca7a;hb=b7f578bef53ff0e645ca0cae3f9781f577b7367a;hp=ca572af8a009e6892e2a6b62446997722d86b02e;hpb=915f7cc87a8dce688ab99fc67005ef77e0d028a2;p=libsigrok.git diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index ca572af8..adf87304 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -184,10 +184,10 @@ static int hw_cleanup(void) return SR_OK; } -static void *hw_dev_info_get(int dev_index, int dev_info_id) +static const void *hw_dev_info_get(int dev_index, int dev_info_id) { struct sr_dev_inst *sdi; - void *info = NULL; + const void *info = NULL; if (!(sdi = sr_dev_inst_get(dev_insts, dev_index))) { sr_err("demo: %s: sdi was NULL", __func__);