aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/midi/alsa.cpp4
-rw-r--r--engines/scumm/smush/smush_font.cpp2
-rw-r--r--gui/debugger.cpp2
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 {