projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c32ed3e
)
constify remote-m32r-sdi.c
author
Pedro Alves
<palves@redhat.com>
Mon, 9 Mar 2015 11:58:19 +0000
(11:58 +0000)
committer
Yao Qi
<yao.qi@linaro.org>
Fri, 20 Mar 2015 17:39:08 +0000
(17:39 +0000)
gdb:
2015-03-20 Pedro Alves <palves@redhat.com>
* remote-m32r-sdi.c (m32r_open): Make "port_str" const.
gdb/ChangeLog
patch
|
blob
|
history
gdb/remote-m32r-sdi.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 0e3afc9dcedf1feec31bd095dca512ba3076fc33..b71739e8156cfb536dec2a16d0b49884769e7c26 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,7
@@
+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.
diff --git
a/gdb/remote-m32r-sdi.c
b/gdb/remote-m32r-sdi.c
index f7ea0b85c924f6fe90f73d88f4faa7dd196ef2c4..01cb5b65fabfdf7a64cd947e91563c66472c127a 100644
(file)
--- 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;