summaryrefslogtreecommitdiff
path: root/auto_tests/onion_test.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-06-15 20:49:39 -0400
committerirungentoo <irungentoo@gmail.com>2014-06-15 20:49:39 -0400
commit881b2d900d1998981fb6b9938ec66012d049635f (patch)
tree74545a384a1201da59fb09f2a1cb1978999397e4 /auto_tests/onion_test.c
parent750c75a47dda2712bc988fecd95510ccf54c68fd (diff)
Fixed some warnings.
Diffstat (limited to 'auto_tests/onion_test.c')
-rw-r--r--auto_tests/onion_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auto_tests/onion_test.c b/auto_tests/onion_test.c
index 4489a894..2394e03d 100644
--- a/auto_tests/onion_test.c
+++ b/auto_tests/onion_test.c
@@ -28,7 +28,7 @@ void do_onion(Onion *onion)
28} 28}
29 29
30static int handled_test_1; 30static int handled_test_1;
31static int handle_test_1(void *object, IP_Port source, uint8_t *packet, uint32_t length) 31static int handle_test_1(void *object, IP_Port source, const uint8_t *packet, uint32_t length)
32{ 32{
33 Onion *onion = object; 33 Onion *onion = object;
34 34
@@ -44,7 +44,7 @@ static int handle_test_1(void *object, IP_Port source, uint8_t *packet, uint32_t
44} 44}
45 45
46static int handled_test_2; 46static int handled_test_2;
47static int handle_test_2(void *object, IP_Port source, uint8_t *packet, uint32_t length) 47static int handle_test_2(void *object, IP_Port source, const uint8_t *packet, uint32_t length)
48{ 48{
49 if (length != sizeof("install Gentoo")) 49 if (length != sizeof("install Gentoo"))
50 return 1; 50 return 1;
@@ -70,7 +70,7 @@ uint8_t sb_data[ONION_ANNOUNCE_SENDBACK_DATA_LENGTH];
70static int handled_test_3; 70static int handled_test_3;
71uint8_t test_3_pub_key[crypto_box_PUBLICKEYBYTES]; 71uint8_t test_3_pub_key[crypto_box_PUBLICKEYBYTES];
72uint8_t test_3_ping_id[crypto_hash_sha256_BYTES]; 72uint8_t test_3_ping_id[crypto_hash_sha256_BYTES];
73static int handle_test_3(void *object, IP_Port source, uint8_t *packet, uint32_t length) 73static int handle_test_3(void *object, IP_Port source, const uint8_t *packet, uint32_t length)
74{ 74{
75 Onion *onion = object; 75 Onion *onion = object;
76 76
@@ -99,7 +99,7 @@ static int handle_test_3(void *object, IP_Port source, uint8_t *packet, uint32_t
99 99
100uint8_t nonce[crypto_box_NONCEBYTES]; 100uint8_t nonce[crypto_box_NONCEBYTES];
101static int handled_test_4; 101static int handled_test_4;
102static int handle_test_4(void *object, IP_Port source, uint8_t *packet, uint32_t length) 102static int handle_test_4(void *object, IP_Port source, const uint8_t *packet, uint32_t length)
103{ 103{
104 Onion *onion = object; 104 Onion *onion = object;
105 105