Browse Source

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
Steven Murdoch 12 years ago
parent
commit
a65212e371
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/tools/tor-fw-helper/tor-fw-helper-natpmp.c

+ 1 - 1
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;