aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"