summaryrefslogtreecommitdiff
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index 56000013a0e..76dbce3bf91 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -177,7 +177,7 @@ net_open (struct serial *scb, const char *name)
else if (strncmp (name, "tcp:", 4) == 0)
name = name + 4;
- port_str = strchr (name, ':');
+ port_str = strchr ((char *) name, ':');
if (!port_str)
error (_("net_open: No colon in host name!")); /* Shouldn't ever