diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2013-09-12 10:10:38 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2013-09-12 10:10:38 +0200 |
commit | d5f0d792dd2e4e5f0314ecd15efe42d1c5e64f25 (patch) | |
tree | 4dcbea40b9043b56c17cc1c0e9a8034f7bcc041d /src/or/connection.h | |
parent | 6553bdde8cc2c84434b87b507e628b28e4054b76 (diff) | |
download | tor-d5f0d792dd2e4e5f0314ecd15efe42d1c5e64f25.tar.gz tor-d5f0d792dd2e4e5f0314ecd15efe42d1c5e64f25.zip |
Pass around const struct timeval * instead of struct timeval.
Suggested by nickm.
Diffstat (limited to 'src/or/connection.h')
-rw-r--r-- | src/or/connection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection.h b/src/or/connection.h index c0894cd095..53d3da0290 100644 --- a/src/or/connection.h +++ b/src/or/connection.h @@ -218,11 +218,11 @@ void connection_enable_rate_limiting(connection_t *conn); /* Used only by connection.c and test*.c */ uint32_t bucket_millis_empty(int tokens_before, uint32_t last_empty_time, int tokens_after, int milliseconds_elapsed, - struct timeval tvnow); + const struct timeval *tvnow); void connection_buckets_note_empty_ts(uint32_t *timestamp_var, int tokens_before, size_t tokens_removed, - struct timeval tvnow); + const struct timeval *tvnow); #endif #endif |