diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-04 15:24:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-04 15:24:30 -0400 |
commit | f45a581486197fb71c166f130b9b4cb0ad42ceff (patch) | |
tree | 2c18d119380db33404d94abf696145421a066df3 /src/test/test_hs_descriptor.c | |
parent | c1bbc8405b8f1624d008688627303911b93e7fb0 (diff) | |
download | tor-f45a581486197fb71c166f130b9b4cb0ad42ceff.tar.gz tor-f45a581486197fb71c166f130b9b4cb0ad42ceff.zip |
Fix some 32-bit warnings and clang warnings
Diffstat (limited to 'src/test/test_hs_descriptor.c')
-rw-r--r-- | src/test/test_hs_descriptor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_hs_descriptor.c b/src/test/test_hs_descriptor.c index 8377a4599e..6c88cc1017 100644 --- a/src/test/test_hs_descriptor.c +++ b/src/test/test_hs_descriptor.c @@ -142,7 +142,7 @@ helper_compare_hs_desc(const hs_descriptor_t *desc1, tt_mem_op(desc1->plaintext_data.blinded_kp.pubkey.pubkey, OP_EQ, desc2->plaintext_data.blinded_kp.pubkey.pubkey, ED25519_PUBKEY_LEN); - tt_uint_op(desc1->plaintext_data.revision_counter, ==, + tt_u64_op(desc1->plaintext_data.revision_counter, ==, desc2->plaintext_data.revision_counter); /* NOTE: We can't compare the encrypted blob because when encoding the @@ -812,7 +812,7 @@ test_decode_intro_point(void *arg) desc_intro_point_free(ip); } -const char encrypted_desc_portion[] = "create2-formats 2\n" +static const char encrypted_desc_portion[] = "create2-formats 2\n" "authentication-required ed25519\n" "introduction-point AQAGAQIDBCMp\n" "auth-key\n" @@ -1056,7 +1056,7 @@ static void test_desc_signature(void *arg) { int ret; - char *data, *desc; + char *data = NULL, *desc = NULL; char sig_b64[ED25519_SIG_BASE64_LEN + 1]; ed25519_keypair_t kp; ed25519_signature_t sig; |