]> granicus.if.org Git - curl/commitdiff
tftpd: fix signed/unsigned mismatch warnings
authorMarcel Raad <raad@teamviewer.com>
Mon, 8 May 2017 18:09:32 +0000 (20:09 +0200)
committerMarcel Raad <raad@teamviewer.com>
Mon, 8 May 2017 18:11:03 +0000 (20:11 +0200)
alarm's argument is unsigned.

tests/server/tftpd.c

index 0cd00c799592aceda1488b186b8a773fba96d560..df01eb7828ddeced0d53c1be69fd666a5513dcf8 100644 (file)
@@ -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() */