From: Pedro Alves Date: Thu, 7 Mar 2013 17:36:25 +0000 (+0000) Subject: ser-tcp.c:tcp_retry_limit: Change type to unsigned int. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=964b8317b43058870b9631fbaedc7e7b646e643b;p=binutils-gdb.git 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 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b9aef0aea60..6e81198d03f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-03-07 Pedro Alves + + * ser-tcp.c (tcp_retry_limit): Change type to unsigned int. + 2013-03-07 Pedro Alves * remote.c (hex2bin, bin2hex): Move extern declarations to ... diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index f9615d56b35..34c6af1f316 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. */