diff options
author | Bertrand Augereau | 2009-09-06 10:51:20 +0000 |
---|---|---|
committer | Bertrand Augereau | 2009-09-06 10:51:20 +0000 |
commit | d454c9b3793fdda9551d7833da08ab503fc10689 (patch) | |
tree | 45507a478b81b181dd90513819ac41a652ee5b71 | |
parent | 0d4cbea620bca445fd911af16da1669b3009080f (diff) | |
download | scummvm-rg350-d454c9b3793fdda9551d7833da08ab503fc10689.tar.gz scummvm-rg350-d454c9b3793fdda9551d7833da08ab503fc10689.tar.bz2 scummvm-rg350-d454c9b3793fdda9551d7833da08ab503fc10689.zip |
Minor constness fixes
svn-id: r43974
-rw-r--r-- | backends/midi/alsa.cpp | 4 | ||||
-rw-r--r-- | engines/scumm/smush/smush_font.cpp | 2 | ||||
-rw-r--r-- | gui/debugger.cpp | 2 |
3 files changed, 4 insertions, 4 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); diff --git a/engines/scumm/smush/smush_font.cpp b/engines/scumm/smush/smush_font.cpp index 328fe694c1..75abe9a772 100644 --- a/engines/scumm/smush/smush_font.cpp +++ b/engines/scumm/smush/smush_font.cpp @@ -171,7 +171,7 @@ void SmushFont::drawString(const char *str, byte *buffer, int dst_width, int dst while (str) { char line[256]; - char *pos = (char *)strchr(str, '\n'); + const char *pos = strchr(str, '\n'); if (pos) { memcpy(line, str, pos - str - 1); line[pos - str - 1] = 0; diff --git a/gui/debugger.cpp b/gui/debugger.cpp index 78ada04cd6..858164259d 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -243,7 +243,7 @@ bool Debugger::parseCommand(const char *inputOrig) { break; // Integer Array case DVAR_INTARRAY: { - char *chr = (char *)strchr(param[0], '['); + const char *chr = strchr(param[0], '['); if (!chr) { DebugPrintf("You must access this array as %s[element]\n", param[0]); } else { |