summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-06-15 16:43:59 -0400
committerNick Mathewson <nickm@torproject.org>2012-06-15 16:43:59 -0400
commit97555f453741c41891461d850ab16452fb6b7131 (patch)
tree3c023271e16be61e7b4365f02cc5c3e2d57d3353
parent30c4653780daa1c70946ed78c102eeab8adb2fe6 (diff)
downloadtor-97555f453741c41891461d850ab16452fb6b7131.tar.gz
tor-97555f453741c41891461d850ab16452fb6b7131.zip
fix a compiler warning added in one of my XXX023 fixes.
-rw-r--r--src/common/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 06eb5839fe..ca850a3038 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) {