]> sigrok.org Git - libsigrok.git/blobdiff - hardware/demo/demo.c
sr: Made the dev_info_get return value const
[libsigrok.git] / hardware / demo / demo.c
index ca572af8a009e6892e2a6b62446997722d86b02e..adf873043570617cd3eebe9b599db41a9893ca7a 100644 (file)
@@ -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__);