diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-15 16:24:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-15 16:24:44 -0400 |
commit | c1deabd3b0c9e2701696afc80ac8392f0efda2c7 (patch) | |
tree | e9aa0dcc25f1687fac2d2de764c22693c75e20cf /src/or/scheduler_kist.c | |
parent | 7a597718bb9cda3dd553c2b12fd42f04ead44c85 (diff) | |
download | tor-c1deabd3b0c9e2701696afc80ac8392f0efda2c7.tar.gz tor-c1deabd3b0c9e2701696afc80ac8392f0efda2c7.zip |
Run our #else/#endif annotator on our source code.
Diffstat (limited to 'src/or/scheduler_kist.c')
-rw-r--r-- | src/or/scheduler_kist.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c index 8595a340ef..2249d49f79 100644 --- a/src/or/scheduler_kist.c +++ b/src/or/scheduler_kist.c @@ -36,10 +36,10 @@ static unsigned int kist_lite_mode = 0; * changed and it doesn't recognized the values passed to the syscalls needed * by KIST. In that case, fallback to the naive approach. */ static unsigned int kist_no_kernel_support = 0; -#else +#else /* !(defined(HAVE_KIST_SUPPORT)) */ static unsigned int kist_no_kernel_support = 1; static unsigned int kist_lite_mode = 1; -#endif +#endif /* defined(HAVE_KIST_SUPPORT) */ /* Socket_table hash table stuff. The socket_table keeps track of per-socket * limit information imposed by kist and used by kist. */ @@ -289,9 +289,9 @@ update_socket_info_impl, (socket_table_ent_t *ent)) ent->limit = (uint64_t)tcp_space + (uint64_t)extra_space; return; -#else /* HAVE_KIST_SUPPORT */ +#else /* !(defined(HAVE_KIST_SUPPORT)) */ goto fallback; -#endif /* HAVE_KIST_SUPPORT */ +#endif /* defined(HAVE_KIST_SUPPORT) */ fallback: /* If all of a sudden we don't have kist support, we just zero out all the @@ -764,7 +764,7 @@ scheduler_can_use_kist(void) return run_interval > 0; } -#else /* HAVE_KIST_SUPPORT */ +#else /* !(defined(HAVE_KIST_SUPPORT)) */ int scheduler_can_use_kist(void) @@ -772,5 +772,5 @@ scheduler_can_use_kist(void) return 0; } -#endif /* HAVE_KIST_SUPPORT */ +#endif /* defined(HAVE_KIST_SUPPORT) */ |