X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fmidi%2B%2B2%2Fmidi.cc;h=7ce7ab7db317dc3f4a5dc0b1b56bf4bfecff2a71;hb=adb492b914ab157dfd718b0555d1d48a4e591974;hp=1d45dc57f510a82b1ce9738103ef10594b5c874f;hpb=da45f489dd3d923bbba8f1cee39ab445c4bf1b64;p=ardour.git diff --git a/libs/midi++2/midi.cc b/libs/midi++2/midi.cc index 1d45dc57f5..7ce7ab7db3 100644 --- a/libs/midi++2/midi.cc +++ b/libs/midi++2/midi.cc @@ -1,6 +1,6 @@ /* Copyright (C) 1998 Paul Barton-Davis - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or @@ -19,9 +19,8 @@ */ #include -#include #include -#include +#include "midi++/types.h" const char *MIDI::controller_names[] = { "bank (0)", @@ -155,11 +154,11 @@ const char *MIDI::controller_names[] = { 0 }; -MIDI::byte +MIDI::byte MIDI::decode_controller_name (const char *name) { - char *lparen; + const char *lparen; size_t len; if ((lparen = strrchr (name, '(')) != 0) {