aboutsummaryrefslogtreecommitdiff
path: root/backends/midi
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-06-14 04:52:10 +0000
committerJordi Vilalta Prat2008-06-14 04:52:10 +0000
commit256036d4afacbf2b8c7b46ae62e216b2638c92bf (patch)
tree24797addd1193190410a3d60ec5f35a2cbe12e3b /backends/midi
parent8eac3569462c71fdcb7d4d23684a8d5ee34dc8b8 (diff)
downloadscummvm-rg350-256036d4afacbf2b8c7b46ae62e216b2638c92bf.tar.gz
scummvm-rg350-256036d4afacbf2b8c7b46ae62e216b2638c92bf.tar.bz2
scummvm-rg350-256036d4afacbf2b8c7b46ae62e216b2638c92bf.zip
Fixed ALSA's invalid port error message
svn-id: r32698
Diffstat (limited to 'backends/midi')
-rw-r--r--backends/midi/alsa.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/midi/alsa.cpp b/backends/midi/alsa.cpp
index f997b142df..2a252b9323 100644
--- a/backends/midi/alsa.cpp
+++ b/backends/midi/alsa.cpp
@@ -79,7 +79,7 @@ MidiDriver_ALSA::MidiDriver_ALSA()
}
int MidiDriver_ALSA::open() {
- char *var;
+ const char *var;
if (_isOpen)
return MERR_ALREADY_OPEN;
@@ -87,7 +87,8 @@ int MidiDriver_ALSA::open() {
if (!(var = getenv("SCUMMVM_PORT"))) {
// use config option if no var specified
- if (parse_addr(ConfMan.get("alsa_port").c_str(), &seq_client, &seq_port) < 0) {
+ var = ConfMan.get("alsa_port").c_str();
+ if (parse_addr(var, &seq_client, &seq_port) < 0) {
error("Invalid port %s", var);
return -1;
}