From 40f8157cde8e811b507c758aeb87d5420976ce56 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Aug 2012 04:18:28 +0000 Subject: 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 --- src/include/wdatutil.h | 4 ++-- src/wdatutil.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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" -- cgit v1.2.1