netbsd: Fix unportable shell construct
[ardour.git] / libs / midi++2 / midi.cc
index f612b4707af1fe0c5cf2075b05308fe424b08213..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
     $Id$
 */
 
-#include <cstring>
-#include <string>
 #include <cstring>
 #include <cstdlib>
-#include <midi++/types.h>
+#include "midi++/types.h"
 
 const char *MIDI::controller_names[] = {
        "bank (0)",
@@ -156,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) {