diff options
author | David Goulet <dgoulet@ev0ke.net> | 2015-06-25 16:13:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-08-11 09:34:41 -0400 |
commit | 1070be8217c26c8917323ead944124e2cd14f9f2 (patch) | |
tree | 5f23c56753955ca87927a32f9ca106e946f91a1e /src/or/rendcache.h | |
parent | d06af95ba3fdcb0c9820dcf34146ba68458d5e46 (diff) | |
download | tor-1070be8217c26c8917323ead944124e2cd14f9f2.tar.gz tor-1070be8217c26c8917323ead944124e2cd14f9f2.zip |
Use an enum for INTRO_POINT_FAILURE_*
Safer, wiser, stronger!
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/rendcache.h')
-rw-r--r-- | src/or/rendcache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendcache.h b/src/or/rendcache.h index 9a18810821..b214a48ccc 100644 --- a/src/or/rendcache.h +++ b/src/or/rendcache.h @@ -34,7 +34,7 @@ typedef struct rend_cache_entry_t { /* Introduction point failure type. */ typedef struct rend_cache_failure_intro_t { - unsigned int failure_type; + rend_intro_point_failure_t failure_type; } rend_cache_failure_intro_t; /** Cache failure object indexed by service ID. */ @@ -65,7 +65,7 @@ rend_cache_store_status_t rend_cache_store_v2_desc_as_client(const char *desc, rend_cache_entry_t **entry); size_t rend_cache_get_total_allocation(void); -void rend_cache_intro_failure_note(unsigned int failure, +void rend_cache_intro_failure_note(rend_intro_point_failure_t failure, const uint8_t *identity, const char *service_id); void rend_cache_failure_purge(void); |