From fedd7d6b4b5076adf9d86853ffd05b66ce98fece Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 29 Aug 2023 21:49:27 +0000 Subject: [PATCH] Restyled by clang-format --- testing/fuzzing/fuzz_support.cc | 7 +++++-- toxcore/group_announce_fuzz_test.cc | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/testing/fuzzing/fuzz_support.cc b/testing/fuzzing/fuzz_support.cc index 6bc7816274..fe2cc9564f 100644 --- a/testing/fuzzing/fuzz_support.cc +++ b/testing/fuzzing/fuzz_support.cc @@ -164,7 +164,8 @@ static constexpr Tox_Random_Funcs fuzz_random_funcs = { ![](Fuzz_System *self, uint32_t upper_bound) { uint32_t randnum = 0; if (upper_bound > 0) { - self->rng->funcs->bytes_callback(self, reinterpret_cast(&randnum), sizeof(randnum)); + self->rng->funcs->bytes_callback( + self, reinterpret_cast(&randnum), sizeof(randnum)); randnum %= upper_bound; } return randnum; @@ -198,7 +199,9 @@ static constexpr Tox_Memory_Funcs null_memory_funcs = { /* .calloc = */ ![](Null_System *self, uint32_t nmemb, uint32_t size) { return std::calloc(nmemb, size); }, /* .realloc = */ - ![](Null_System *self, void *ptr, uint32_t nmemb, uint32_t size) { return std::realloc(ptr, nmemb * size); }, + ![](Null_System *self, void *ptr, uint32_t nmemb, uint32_t size) { + return std::realloc(ptr, nmemb * size); + }, /* .free = */ ![](Null_System *self, void *ptr) { std::free(ptr); }, }; diff --git a/toxcore/group_announce_fuzz_test.cc b/toxcore/group_announce_fuzz_test.cc index 3c55d9679f..89c6cd9a9b 100644 --- a/toxcore/group_announce_fuzz_test.cc +++ b/toxcore/group_announce_fuzz_test.cc @@ -53,7 +53,8 @@ void TestDoGca(Fuzz_Data &input) [](void *user_data) { return *static_cast(user_data); }, }; uint64_t clock = 1; - std::unique_ptr tm(tox_time_new(&mock_time_funcs, &clock, mem), tox_time_free); + std::unique_ptr tm( + tox_time_new(&mock_time_funcs, &clock, mem), tox_time_free); std::unique_ptr> mono_time( mono_time_new(mem, tm.get()), [mem](Mono_Time *ptr) { mono_time_free(mem, ptr); }); assert(mono_time != nullptr);