diff options
author | Pedro Alves <palves@redhat.com> | 2013-03-07 17:36:25 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-03-07 17:36:25 +0000 |
commit | 964b8317b43058870b9631fbaedc7e7b646e643b (patch) | |
tree | a1a9f94843293367aefda94bfa35fb67c9c8ee2e /gdb | |
parent | f0cc8ad436c3d86783ceaa2febd2919ef5f996fa (diff) | |
download | gdb-964b8317b43058870b9631fbaedc7e7b646e643b.zip gdb-964b8317b43058870b9631fbaedc7e7b646e643b.tar.gz gdb-964b8317b43058870b9631fbaedc7e7b646e643b.tar.bz2 |
ser-tcp.c:tcp_retry_limit: Change type to unsigned int.
tcp_retry_limit is installed as variable of an unsigned command:
add_setshow_uinteger_cmd ("connect-timeout", class_obscure,
&tcp_retry_limit, _("\
and I found no uses of the variable treating it as signed (like < 0
checks or some such).
2013-03-07 Pedro Alves <palves@redhat.com>
* ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/ser-tcp.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b9aef0a..6e81198 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2013-03-07 Pedro Alves <palves@redhat.com> + * ser-tcp.c (tcp_retry_limit): Change type to unsigned int. + +2013-03-07 Pedro Alves <palves@redhat.com> + * remote.c (hex2bin, bin2hex): Move extern declarations to ... * remote.h (hex2bin, bin2hex): ... here. * tracepoint.c (hex2bin, bin2hex): Remove extern declarations. diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index f9615d5..34c6af1 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -72,7 +72,7 @@ static int tcp_auto_retry = 1; /* Timeout period for connections, in seconds. */ -static int tcp_retry_limit = 15; +static unsigned int tcp_retry_limit = 15; /* How many times per second to poll deprecated_ui_loop_hook. */ |