diff options
author | irungentoo <irungentoo@gmail.com> | 2014-06-15 20:49:39 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-06-15 20:49:39 -0400 |
commit | 881b2d900d1998981fb6b9938ec66012d049635f (patch) | |
tree | 74545a384a1201da59fb09f2a1cb1978999397e4 /auto_tests/onion_test.c | |
parent | 750c75a47dda2712bc988fecd95510ccf54c68fd (diff) |
Fixed some warnings.
Diffstat (limited to 'auto_tests/onion_test.c')
-rw-r--r-- | auto_tests/onion_test.c | 8 |
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 | ||
30 | static int handled_test_1; | 30 | static int handled_test_1; |
31 | static int handle_test_1(void *object, IP_Port source, uint8_t *packet, uint32_t length) | 31 | static 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 | ||
46 | static int handled_test_2; | 46 | static int handled_test_2; |
47 | static int handle_test_2(void *object, IP_Port source, uint8_t *packet, uint32_t length) | 47 | static 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]; | |||
70 | static int handled_test_3; | 70 | static int handled_test_3; |
71 | uint8_t test_3_pub_key[crypto_box_PUBLICKEYBYTES]; | 71 | uint8_t test_3_pub_key[crypto_box_PUBLICKEYBYTES]; |
72 | uint8_t test_3_ping_id[crypto_hash_sha256_BYTES]; | 72 | uint8_t test_3_ping_id[crypto_hash_sha256_BYTES]; |
73 | static int handle_test_3(void *object, IP_Port source, uint8_t *packet, uint32_t length) | 73 | static 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 | ||
100 | uint8_t nonce[crypto_box_NONCEBYTES]; | 100 | uint8_t nonce[crypto_box_NONCEBYTES]; |
101 | static int handled_test_4; | 101 | static int handled_test_4; |
102 | static int handle_test_4(void *object, IP_Port source, uint8_t *packet, uint32_t length) | 102 | static 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 | ||