[tor-commits] [tor/master] fix a compiler warning added in one of my XXX023 fixes.

nickm at torproject.org nickm at torproject.org
Fri Jun 15 20:48:01 UTC 2012


commit 97555f453741c41891461d850ab16452fb6b7131
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Jun 15 16:43:59 2012 -0400

    fix a compiler warning added in one of my XXX023 fixes.
---
 src/common/compat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/common/compat.c b/src/common/compat.c
index 06eb583..ca850a3 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -1311,7 +1311,7 @@ set_max_file_descriptors(rlim_t limit, int *max_out)
     limit = rlim.rlim_max;
     if (limit > INT_MAX)
       limit = INT_MAX;
-    *max_out = limit - ULIMIT_BUFFER;
+    *max_out = (int)limit - ULIMIT_BUFFER;
     return 0;
   }
   if (rlim.rlim_max < limit) {



More information about the tor-commits mailing list