From aba1ad2757169bd48f6740d2f633f520dbaadc74 Mon Sep 17 00:00:00 2001
From: Paul Abbott
Date: Wed, 4 Mar 2026 11:35:42 -0500
Subject: [PATCH] fix minor warning: new_aubio_window() should take const
char_t *.
---
src/mathutils.c | 4 ++--
src/musicutils.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mathutils.c b/src/mathutils.c
index 35755fe49..17c8bc40b 100644
--- a/src/mathutils.c
+++ b/src/mathutils.c
@@ -42,7 +42,7 @@ typedef enum
} aubio_window_type;
fvec_t *
-new_aubio_window (char_t * window_type, uint_t length)
+new_aubio_window (const char_t * window_type, uint_t length)
{
fvec_t * win = new_fvec (length);
uint_t err;
@@ -57,7 +57,7 @@ new_aubio_window (char_t * window_type, uint_t length)
return win;
}
-uint_t fvec_set_window (fvec_t *win, char_t *window_type) {
+uint_t fvec_set_window (fvec_t *win, const char_t *window_type) {
smpl_t * w = win->data;
uint_t i, size = win->length;
aubio_window_type wintype;
diff --git a/src/musicutils.h b/src/musicutils.h
index af222e5b5..6263575fe 100644
--- a/src/musicutils.h
+++ b/src/musicutils.h
@@ -35,7 +35,7 @@ extern "C" {
\param size length of the window to create (see fvec_set_window())
*/
-fvec_t *new_aubio_window (char_t * window_type, uint_t size);
+fvec_t *new_aubio_window (const char_t * window_type, uint_t size);
/** set elements of a vector to window coefficients
@@ -60,7 +60,7 @@ Uni- versity of Verona, Italy, 2000.
pdf)
*/
-uint_t fvec_set_window (fvec_t * window, char_t * window_type);
+uint_t fvec_set_window (fvec_t * window, const char_t * window_type);
/** compute the principal argument