瀏覽代碼

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 14 年之前
父節點
當前提交
a65212e371
共有 1 個文件被更改,包括 1 次插入1 次删除
  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. */
 /** Use select() to wait until we can read on fd. */
 static int
 static int
-wait_until_fd_readable(int fd, struct timeval *timeout)
+wait_until_fd_readable(unsigned int fd, struct timeval *timeout)
 {
 {
   int r;
   int r;
   fd_set fds;
   fd_set fds;