aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 04:18:28 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 04:18:28 +0000
commit40f8157cde8e811b507c758aeb87d5420976ce56 (patch)
treeb67b44025d495b208c34e903f7fdc143d9c08ceb
parente7b963f6df40bf5ff5a0b586bebc6487caf8a28c (diff)
downloadblop.lv2-40f8157cde8e811b507c758aeb87d5420976ce56.tar.gz
blop.lv2-40f8157cde8e811b507c758aeb87d5420976ce56.tar.bz2
blop.lv2-40f8157cde8e811b507c758aeb87d5420976ce56.zip
Fix conversion of string constants to non-const char*.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blop.lv2@4644 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/include/wdatutil.h4
-rw-r--r--src/wdatutil.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/include/wdatutil.h b/src/include/wdatutil.h
index b87b637..9a0810a 100644
--- a/src/include/wdatutil.h
+++ b/src/include/wdatutil.h
@@ -27,8 +27,8 @@
#define WAVE_TYPE_COUNT 3
-extern char* wave_names[];
-extern char* wave_descriptions[];
+extern const char* wave_names[];
+extern const char* wave_descriptions[];
extern unsigned long wave_first_harmonics[];
extern unsigned long wave_harmonic_intervals[];
diff --git a/src/wdatutil.c b/src/wdatutil.c
index 122feec..a6f5bd3 100644
--- a/src/wdatutil.c
+++ b/src/wdatutil.c
@@ -48,13 +48,13 @@ void generate_parabola(float* samples,
} /* extern "C" { */
#endif
-char* wave_names[] = {
+const char* wave_names[] = {
"saw",
"square",
"parabola"
};
-char* wave_descriptions[] = {
+const char* wave_descriptions[] = {
"Sawtooth Wave",
"Square Wave",
"Parabola Wave"