aboutsummaryrefslogtreecommitdiff
path: root/src/tools/tor-fw-helper
diff options
context:
space:
mode:
authorSteven Murdoch <Steven Murdoch@cl.cam.ac.uk>2011-11-30 20:41:27 +0000
committerSteven Murdoch <Steven Murdoch@cl.cam.ac.uk>2011-11-30 22:04:14 +0000
commita65212e371334c95292da1ca460d9d1d9a84d38e (patch)
tree2b601a9b7cc74bf8b2d08af1862af600ea252e09 /src/tools/tor-fw-helper
parent5dbfb1b3e0efc95be34ba7d69852511c9bac1f4b (diff)
downloadtor-a65212e371334c95292da1ca460d9d1d9a84d38e.tar
tor-a65212e371334c95292da1ca460d9d1d9a84d38e.tar.gz
Make file descriptor type an unsigned integer
This avoids a warning from gcc (comparison between signed and unsigned integer expressions [-Werror=sign-compare]), under Windows
Diffstat (limited to 'src/tools/tor-fw-helper')
-rw-r--r--src/tools/tor-fw-helper/tor-fw-helper-natpmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tor-fw-helper/tor-fw-helper-natpmp.c b/src/tools/tor-fw-helper/tor-fw-helper-natpmp.c
index a8cdbbf24..aaa685e1e 100644
--- a/src/tools/tor-fw-helper/tor-fw-helper-natpmp.c
+++ b/src/tools/tor-fw-helper/tor-fw-helper-natpmp.c
@@ -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;