]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a compiler warning added in one of my XXX023 fixes.
authorNick Mathewson <nickm@torproject.org>
Fri, 15 Jun 2012 20:43:59 +0000 (16:43 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 15 Jun 2012 20:43:59 +0000 (16:43 -0400)
src/common/compat.c

index 06eb5839fed13de52621f876f1d8681a6f7d034e..ca850a3038dff7069911defc869599ae566ed102 100644 (file)
@@ -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) {