aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-14 13:05:00 -0400
committerNick Mathewson <nickm@torproject.org>2012-05-14 13:05:36 -0400
commit43e15300bad6dd2618f331d51a1b3f83c2326d4e (patch)
tree35409354b6d8103fb368b54b58f988146c3d3974 /src/or/rephist.h
parent757725ffdef0aa64a5a4a642eb08c10ec8f0ae4d (diff)
downloadtor-43e15300bad6dd2618f331d51a1b3f83c2326d4e.tar
tor-43e15300bad6dd2618f331d51a1b3f83c2326d4e.tar.gz
MSVC build issue: make 'const' in declaration match 'const' in definition
MSVC warns if you declare a function as having a "int foo" argument and then implement it with a "const int foo" argument, even though the latter "const" is not a part of the function's interface.
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r--src/or/rephist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h
index 0a3e46ae1..6b05fe92d 100644
--- a/src/or/rephist.h
+++ b/src/or/rephist.h
@@ -34,7 +34,7 @@ int rep_hist_load_state(or_state_t *state, char **err);
void rep_history_clean(time_t before);
void rep_hist_note_router_reachable(const char *id, const tor_addr_t *at_addr,
- uint16_t at_port, time_t when);
+ const uint16_t at_port, time_t when);
void rep_hist_note_router_unreachable(const char *id, time_t when);
int rep_hist_record_mtbf_data(time_t now, int missing_means_down);
int rep_hist_load_mtbf_data(time_t now);