From: Ruben Kerkhof Date: Sat, 5 Mar 2016 21:32:40 +0000 (+0100) Subject: sigrok plugin: constify X-Git-Tag: collectd-5.6.0~407 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a9975ca14478a467505d71ea0d491cea782f4c3b;p=collectd.git sigrok plugin: constify --- 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";