aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/hs_cache.c')
-rw-r--r--src/or/hs_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/hs_cache.c b/src/or/hs_cache.c
index 40730bd435..9b68045e89 100644
--- a/src/or/hs_cache.c
+++ b/src/or/hs_cache.c
@@ -249,7 +249,7 @@ hs_cache_store_as_dir(const char *desc)
* we are sure that the descriptor's version is supported else the
* decoding would have failed. */
switch (dir_desc->plaintext_data->version) {
- case 3:
+ case HS_VERSION_THREE:
default:
if (cache_store_v3_as_dir(dir_desc) < 0) {
goto err;
@@ -279,7 +279,7 @@ hs_cache_lookup_as_dir(uint32_t version, const char *query,
tor_assert(hs_desc_is_supported_version(version));
switch (version) {
- case 3:
+ case HS_VERSION_THREE:
default:
found = cache_lookup_v3_as_dir(query, desc_out);
break;