aboutsummaryrefslogtreecommitdiff
path: root/src/lib/process/restrict.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-18 11:01:12 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-26 15:52:45 -0400
commit194dbea24d1d05fa7b63b361b06054da4df011b9 (patch)
tree84c3551ccf2505915ea7ad644dbe74bbc3aacda5 /src/lib/process/restrict.c
parent3283fd7e79913e25cd5e626d6bb3a12a05b2f3fc (diff)
downloadtor-194dbea24d1d05fa7b63b361b06054da4df011b9.tar.gz
tor-194dbea24d1d05fa7b63b361b06054da4df011b9.zip
Run "make autostyle" with new "annotate_ifdef_directives"
Diffstat (limited to 'src/lib/process/restrict.c')
-rw-r--r--src/lib/process/restrict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/process/restrict.c b/src/lib/process/restrict.c
index 534b39d101..93d06de9a2 100644
--- a/src/lib/process/restrict.c
+++ b/src/lib/process/restrict.c
@@ -214,7 +214,7 @@ set_max_file_descriptors(rlim_t limit, int *max_out)
return -1;
}
limit = MAX_CONNECTIONS;
-#else /* !(!defined(HAVE_GETRLIMIT)) */
+#else /* defined(HAVE_GETRLIMIT) */
struct rlimit rlim;
if (getrlimit(RLIMIT_NOFILE, &rlim) != 0) {