summaryrefslogtreecommitdiff
path: root/auto_tests/encryptsave_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/encryptsave_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/encryptsave_test.c')
-rw-r--r--auto_tests/encryptsave_test.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/auto_tests/encryptsave_test.c b/auto_tests/encryptsave_test.c
index f1e768d6..5841f43f 100644
--- a/auto_tests/encryptsave_test.c
+++ b/auto_tests/encryptsave_test.c
@@ -59,7 +59,6 @@ START_TEST(test_save_friend)
59 Tox *tox1 = tox_new(0, 0); 59 Tox *tox1 = tox_new(0, 0);
60 Tox *tox2 = tox_new(0, 0); 60 Tox *tox2 = tox_new(0, 0);
61 ck_assert_msg(tox1 || tox2, "Failed to create 2 tox instances"); 61 ck_assert_msg(tox1 || tox2, "Failed to create 2 tox instances");
62 uint32_t to_compare = 974536;
63 tox_callback_friend_request(tox2, accept_friend_request); 62 tox_callback_friend_request(tox2, accept_friend_request);
64 uint8_t address[TOX_ADDRESS_SIZE]; 63 uint8_t address[TOX_ADDRESS_SIZE];
65 tox_self_get_address(tox2, address); 64 tox_self_get_address(tox2, address);