aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-m32r-sdi.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-03-09 11:58:19 +0000
committerYao Qi <yao.qi@linaro.org>2015-03-20 17:39:08 +0000
commitf6fc92f6711049c0d51cfe7027aa58255ae739b4 (patch)
treed49b8f93f0d8b434193795e8244280663b46fbba /gdb/remote-m32r-sdi.c
parentc32ed3ef8084f209c8ce2e9e0fecc91560245373 (diff)
downloadgdb-f6fc92f6711049c0d51cfe7027aa58255ae739b4.zip
gdb-f6fc92f6711049c0d51cfe7027aa58255ae739b4.tar.gz
gdb-f6fc92f6711049c0d51cfe7027aa58255ae739b4.tar.bz2
constify remote-m32r-sdi.c
gdb: 2015-03-20 Pedro Alves <palves@redhat.com> * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
Diffstat (limited to 'gdb/remote-m32r-sdi.c')
-rw-r--r--gdb/remote-m32r-sdi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c
index f7ea0b8..01cb5b6 100644
--- a/gdb/remote-m32r-sdi.c
+++ b/gdb/remote-m32r-sdi.c
@@ -362,7 +362,8 @@ m32r_open (const char *args, int from_tty)
{
struct hostent *host_ent;
struct sockaddr_in server_addr;
- char *port_str, hostname[256];
+ char hostname[256];
+ const char *port_str;
int port;
int i, n;
int yes = 1;