diff options
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r-- | gdb/ser-tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 485ed6c..ce40b61 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -155,7 +155,8 @@ wait_for_connect (struct serial *scb, unsigned int *polls) int net_open (struct serial *scb, const char *name) { - char *port_str, hostname[100]; + char hostname[100]; + const char *port_str; int n, port, tmp; int use_udp; struct hostent *hostent; |