summaryrefslogtreecommitdiff
path: root/auto_tests/toxav_many_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-22 13:13:29 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-24 20:52:09 +0100
commit0d347c2b2e69aa09b079f6daaa00007fef4fe52f (patch)
treeb5a7be0fa38218268fa08e2adf4c174be2349137 /auto_tests/toxav_many_test.c
parentb588e0fdd307632eaa027db31aa8c11a14c99cef (diff)
Minor cleanups: unused vars, unreachable code, static globals.
- All global variables should be static unless they have an explicit extern declaration in a header file. - `to_compare` was not used in encryptsave and toxav tests. - `break` in switch cases is not required directly after `return`, `goto`, or a noreturn function like `abort`.
Diffstat (limited to 'auto_tests/toxav_many_test.c')
-rw-r--r--auto_tests/toxav_many_test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/auto_tests/toxav_many_test.c b/auto_tests/toxav_many_test.c
index bdb5445b..fec2a1de 100644
--- a/auto_tests/toxav_many_test.c
+++ b/auto_tests/toxav_many_test.c
@@ -235,7 +235,6 @@ START_TEST(test_AV_three_calls)
235 printf("Preparing network...\n"); 235 printf("Preparing network...\n");
236 long long unsigned int cur_time = time(NULL); 236 long long unsigned int cur_time = time(NULL);
237 237
238 uint32_t to_compare = 974536;
239 uint8_t address[TOX_ADDRESS_SIZE]; 238 uint8_t address[TOX_ADDRESS_SIZE];
240 239
241 tox_callback_friend_request(Alice, t_accept_friend_request_cb); 240 tox_callback_friend_request(Alice, t_accept_friend_request_cb);