summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2025-04-20 09:41:11 +1000
committer Vas Crabb <vas@vastheman.com>2025-04-20 09:41:11 +1000
commit9c28c45517c5a231a8a30c2107ec3efecdf0ff8e (patch)
tree17e98656bbc1c68aac653d414985c9c7a40071d3 /3rdparty
parent435f04a4c558e424fe81907e409fe772ad60bab4 (diff)
3rdparty/portmidi: Another place that needs const hit by Linux.
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/portmidi/pm_common/pminternal.h2
-rw-r--r--3rdparty/portmidi/pm_common/portmidi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/portmidi/pm_common/pminternal.h b/3rdparty/portmidi/pm_common/pminternal.h
index 2aea2fd18dc..80efbb07f64 100644
--- a/3rdparty/portmidi/pm_common/pminternal.h
+++ b/3rdparty/portmidi/pm_common/pminternal.h
@@ -160,7 +160,7 @@ PmTimestamp none_synchronize(PmInternal *midi);
PmError pm_fail_fn(PmInternal *midi);
PmError pm_fail_timestamp_fn(PmInternal *midi, PmTimestamp timestamp);
PmError pm_success_fn(PmInternal *midi);
-PmError pm_add_interf(char *interf, pm_create_fn create_fn,
+PmError pm_add_interf(const char *interf, pm_create_fn create_fn,
pm_delete_fn delete_fn);
PmError pm_add_device(const char *interf, const char *name, int is_input,
int is_virtual, void *descriptor, pm_fns_type dictionary);
diff --git a/3rdparty/portmidi/pm_common/portmidi.c b/3rdparty/portmidi/pm_common/portmidi.c
index f3f425df340..7c906dcae42 100644
--- a/3rdparty/portmidi/pm_common/portmidi.c
+++ b/3rdparty/portmidi/pm_common/portmidi.c
@@ -121,7 +121,7 @@ static int pm_interf_list_len = 0;
* returns pmInsufficientMemor if interface memory is
* exceeded, otherwise returns pmNoError.
*/
-PmError pm_add_interf(char *interf, pm_create_fn create_fn,
+PmError pm_add_interf(const char *interf, pm_create_fn create_fn,
pm_delete_fn delete_fn)
{
if (pm_interf_list_len >= MAX_INTERF) {