[binutils-gdb] constify remote-m32r-sdi.c
Yao Qi
qiyao@sourceware.org
Fri Mar 20 17:43:00 GMT 2015
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f6fc92f6711049c0d51cfe7027aa58255ae739b4
commit f6fc92f6711049c0d51cfe7027aa58255ae739b4
Author: Pedro Alves <palves@redhat.com>
Date: Mon Mar 9 11:58:19 2015 +0000
constify remote-m32r-sdi.c
gdb:
2015-03-20 Pedro Alves <palves@redhat.com>
* remote-m32r-sdi.c (m32r_open): Make "port_str" const.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/remote-m32r-sdi.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0e3afc9..b71739e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2015-03-20 Pedro Alves <palves@redhat.com>
+ * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
+
+2015-03-20 Pedro Alves <palves@redhat.com>
+
* nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
(nto_init_solib_absolute_prefix): Likewise.
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;
More information about the Gdb-cvs
mailing list