]> sigrok.org Git - libsigrok.git/blobdiff - strutil.c
sr: Made the dev_info_get return value const
[libsigrok.git] / strutil.c
index 26296cea21419aee00f784e18fbefcf02b2a55be..f70a6f35343840ed654b5daf45bbbdc04c2ee706 100644 (file)
--- a/strutil.c
+++ b/strutil.c
@@ -176,7 +176,8 @@ SR_API char **sr_parse_triggerstring(struct sr_dev *dev,
        GSList *l;
        struct sr_probe *probe;
        int max_probes, probenum, i;
-       char **tokens, **triggerlist, *trigger, *tc, *trigger_types;
+       char **tokens, **triggerlist, *trigger, *tc;
+       const char *trigger_types;
        gboolean error;
 
        max_probes = g_slist_length(dev->probes);