From: Tilman Sauerbeck Date: Mon, 2 Nov 2015 20:59:00 +0000 (+0100) Subject: Constify sr_dev_driver::name and sr_dev_driver::long_name. X-Git-Tag: libsigrok-0.4.0~125 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e5ef649be3167dbb9f6403e2c1d0e2e1b09d3a0c;p=libsigrok.git Constify sr_dev_driver::name and sr_dev_driver::long_name. This fixes a bunch of warnings when compiling with -Wwrite-strings. --- diff --git a/include/libsigrok/libsigrok.h b/include/libsigrok/libsigrok.h index 12bbb171..1030f258 100644 --- a/include/libsigrok/libsigrok.h +++ b/include/libsigrok/libsigrok.h @@ -1091,9 +1091,9 @@ enum sr_dev_inst_status { struct sr_dev_driver { /* Driver-specific */ /** Driver name. Lowercase a-z, 0-9 and dashes (-) only. */ - char *name; + const char *name; /** Long name. Verbose driver name shown to user. */ - char *longname; + const char *longname; /** API version (currently 1). */ int api_version; /** Called when driver is loaded, e.g. program startup. */