diff options
author | Marcel Raad <raad@teamviewer.com> | 2017-05-08 20:09:32 +0200 |
---|---|---|
committer | Marcel Raad <raad@teamviewer.com> | 2017-05-08 20:11:03 +0200 |
commit | e076fdaf5bb7862670cf4e0e5d6ba5861dd3b6e9 (patch) | |
tree | 9634b82944badd9a12ff1c9ad4b26339344dccab /tests | |
parent | 141ed8ca09e0650879d2333ecce19ff1b339b895 (diff) |
tftpd: fix signed/unsigned mismatch warnings
alarm's argument is unsigned.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server/tftpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 0cd00c799..df01eb782 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -199,8 +199,8 @@ static curl_socklen_t fromlen; static curl_socket_t peer = CURL_SOCKET_BAD; -static int timeout; -static int maxtimeout = 5 * TIMEOUT; +static unsigned int timeout; +static unsigned int maxtimeout = 5 * TIMEOUT; #ifdef ENABLE_IPV6 static bool use_ipv6 = FALSE; @@ -217,7 +217,7 @@ static sigjmp_buf timeoutbuf; #endif #if defined(HAVE_ALARM) && defined(SIGALRM) -static int rexmtval = TIMEOUT; +static const unsigned int rexmtval = TIMEOUT; #endif /* do-nothing macro replacement for systems which lack siginterrupt() */ |