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
This commit is contained in:
Steven Murdoch 2011-11-30 20:41:27 +00:00
parent 5dbfb1b3e0
commit a65212e371

View 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;