From a9975ca14478a467505d71ea0d491cea782f4c3b Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 5 Mar 2016 22:32:40 +0100 Subject: [PATCH] sigrok plugin: constify --- src/sigrok.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sigrok.c b/src/sigrok.c index 487f31a1..ad5c70c0 100644 --- a/src/sigrok.c +++ b/src/sigrok.c @@ -136,9 +136,9 @@ static int sigrok_config(oconfig_item_t *ci) return 0; } -static char *sigrok_value_type(const struct sr_datafeed_analog *analog) +static const char *sigrok_value_type(const struct sr_datafeed_analog *analog) { - char *s; + const char *s; if (analog->mq == SR_MQ_VOLTAGE) s = "voltage"; -- 2.30.2