diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-27 10:05:53 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-27 10:09:16 -0400 |
commit | 9f8b60d74c91f4028b68ea8345a5562768acc81e (patch) | |
tree | a5142b04b596e9167063e1abfaf6784b278dae92 /src/or/or.h | |
parent | 3a47dfed349ee2c05f30ba142d3583772fa2287f (diff) | |
download | tor-9f8b60d74c91f4028b68ea8345a5562768acc81e.tar.gz tor-9f8b60d74c91f4028b68ea8345a5562768acc81e.zip |
Move or_state_mark_dirty into statefile.c
Previously it was an inline function in or.h
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/or/or.h b/src/or/or.h index e27f25197b..06262e430a 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4745,15 +4745,6 @@ typedef struct { time_t LastRotatedOnionKey; } or_state_t; -/** Change the next_write time of <b>state</b> to <b>when</b>, unless the - * state is already scheduled to be written to disk earlier than <b>when</b>. - */ -static inline void or_state_mark_dirty(or_state_t *state, time_t when) -{ - if (state->next_write > when) - state->next_write = when; -} - #define MAX_SOCKS_REPLY_LEN 1024 #define MAX_SOCKS_ADDR_LEN 256 #define SOCKS_NO_AUTH 0x00 |