diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/midi/alsa.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/alsa.cpp b/backends/midi/alsa.cpp index 3015ac786e..ff84744569 100644 --- a/backends/midi/alsa.cpp +++ b/backends/midi/alsa.cpp @@ -228,10 +228,10 @@ void MidiDriver_ALSA::sysEx(const byte *msg, uint16 length) { } int MidiDriver_ALSA::parse_addr(const char *arg, int *client, int *port) { - char *p; + const char *p; if (isdigit(*arg)) { - if ((p = (char *)strpbrk(arg, ADDR_DELIM)) == NULL) + if ((p = strpbrk(arg, ADDR_DELIM)) == NULL) return -1; *client = atoi(arg); *port = atoi(p + 1); |