netbsd: Fix unportable shell construct
[ardour.git] / libs / midi++2 / midi.cc
index 1d45dc57f510a82b1ce9738103ef10594b5c874f..7ce7ab7db317dc3f4a5dc0b1b56bf4bfecff2a71 100644 (file)
@@ -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 <cstring>
-#include <string>
 #include <cstdlib>
-#include <midi++/types.h>
+#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) {