[tor-commits] [tor/master] Make file descriptor type an unsigned integer

nickm at torproject.org nickm at torproject.org
Wed Nov 30 22:49:38 UTC 2011


commit a65212e371334c95292da1ca460d9d1d9a84d38e
Author: Steven Murdoch <Steven Murdoch at cl.cam.ac.uk>
Date:   Wed Nov 30 20:41:27 2011 +0000

    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
---
 src/tools/tor-fw-helper/tor-fw-helper-natpmp.c |    2 +-
 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 a8cdbbf..aaa685e 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;





More information about the tor-commits mailing list