diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2016-07-04 16:27:46 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2016-07-04 16:34:40 +0200 |
commit | bd1a85cc91eaa7aa148461274704cde999d8af2b (patch) | |
tree | 210d863abfc01afd5faf77ef19f3139770d470ab /src/common/procmon.c | |
parent | 265e40b481d23ea0ee8b4e1705fb013532d1f6b2 (diff) | |
download | tor-bd1a85cc91eaa7aa148461274704cde999d8af2b.tar.gz tor-bd1a85cc91eaa7aa148461274704cde999d8af2b.zip |
Address review comments from cypherpunks
Diffstat (limited to 'src/common/procmon.c')
-rw-r--r-- | src/common/procmon.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/common/procmon.c b/src/common/procmon.c index 466044deb8..c485c760c7 100644 --- a/src/common/procmon.c +++ b/src/common/procmon.c @@ -163,11 +163,7 @@ tor_validate_process_specifier(const char *process_spec, #define PERIODIC_TIMER_FLAGS EV_PERSIST /* DOCDOC poll_interval_tv */ -static struct timeval poll_interval_tv = {15, 0}; -/* Note: If you port this file to plain Libevent 2, you can make - * poll_interval_tv const. It has to be non-const here because in - * libevent 1.x, event_add expects a pointer to a non-const struct - * timeval. */ +static const struct timeval poll_interval_tv = {15, 0}; /** Create a process-termination monitor for the process specifier * given in <b>process_spec</b>. Return a newly allocated |