X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsigrok.c;h=ad5c70c0b3eed5cfc5293c7348fcbddf7144b6b1;hb=5c2993e4121feae745551be182221b31bc23ff97;hp=487f31a1b8030edbb299affb87368849d743064c;hpb=2bda2a5648c87a2c5b8304238cd80ff17984c5cd;p=collectd.git 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";