From: Pedro Alves Date: Mon, 9 Mar 2015 11:58:19 +0000 (+0000) Subject: constify remote-m32r-sdi.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6fc92f6711049c0d51cfe7027aa58255ae739b4;p=binutils-gdb.git constify remote-m32r-sdi.c gdb: 2015-03-20 Pedro Alves * remote-m32r-sdi.c (m32r_open): Make "port_str" const. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0e3afc9dced..b71739e8156 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-03-20 Pedro Alves + + * remote-m32r-sdi.c (m32r_open): Make "port_str" const. + 2015-03-20 Pedro Alves * nto-tdep.c (nto_find_and_open_solib): Make "endian" const. diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c index f7ea0b85c92..01cb5b65fab 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;