]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make file descriptor type an unsigned integer
authorSteven Murdoch <Steven Murdoch@cl.cam.ac.uk>
Wed, 30 Nov 2011 20:41:27 +0000 (20:41 +0000)
committerSteven Murdoch <Steven Murdoch@cl.cam.ac.uk>
Wed, 30 Nov 2011 22:04:14 +0000 (22:04 +0000)
This avoids a warning from gcc (comparison between signed and unsigned
integer expressions [-Werror=sign-compare]), under Windows

src/tools/tor-fw-helper/tor-fw-helper-natpmp.c

index a8cdbbf24a6842054dbac02bd296fb3c71b9bfaf..aaa685e1ee49698c4759751621c84102dfe1b103 100644 (file)
@@ -84,7 +84,7 @@ tor_natpmp_cleanup(tor_fw_options_t *tor_fw_options, void *backend_state)
 
 /** Use select() to wait until we can read on fd. */
 static int
-wait_until_fd_readable(int fd, struct timeval *timeout)
+wait_until_fd_readable(unsigned int fd, struct timeval *timeout)
 {
   int r;
   fd_set fds;