Skip to content

Commit fedd7d6

Browse files
Restyled by clang-format
1 parent 7e56ac9 commit fedd7d6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

testing/fuzzing/fuzz_support.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ static constexpr Tox_Random_Funcs fuzz_random_funcs = {
164164
![](Fuzz_System *self, uint32_t upper_bound) {
165165
uint32_t randnum = 0;
166166
if (upper_bound > 0) {
167-
self->rng->funcs->bytes_callback(self, reinterpret_cast<uint8_t *>(&randnum), sizeof(randnum));
167+
self->rng->funcs->bytes_callback(
168+
self, reinterpret_cast<uint8_t *>(&randnum), sizeof(randnum));
168169
randnum %= upper_bound;
169170
}
170171
return randnum;
@@ -198,7 +199,9 @@ static constexpr Tox_Memory_Funcs null_memory_funcs = {
198199
/* .calloc = */
199200
![](Null_System *self, uint32_t nmemb, uint32_t size) { return std::calloc(nmemb, size); },
200201
/* .realloc = */
201-
![](Null_System *self, void *ptr, uint32_t nmemb, uint32_t size) { return std::realloc(ptr, nmemb * size); },
202+
![](Null_System *self, void *ptr, uint32_t nmemb, uint32_t size) {
203+
return std::realloc(ptr, nmemb * size);
204+
},
202205
/* .free = */
203206
![](Null_System *self, void *ptr) { std::free(ptr); },
204207
};

toxcore/group_announce_fuzz_test.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ void TestDoGca(Fuzz_Data &input)
5353
[](void *user_data) { return *static_cast<uint64_t *>(user_data); },
5454
};
5555
uint64_t clock = 1;
56-
std::unique_ptr<Tox_Time, void (*)(Tox_Time *)> tm(tox_time_new(&mock_time_funcs, &clock, mem), tox_time_free);
56+
std::unique_ptr<Tox_Time, void (*)(Tox_Time *)> tm(
57+
tox_time_new(&mock_time_funcs, &clock, mem), tox_time_free);
5758
std::unique_ptr<Mono_Time, std::function<void(Mono_Time *)>> mono_time(
5859
mono_time_new(mem, tm.get()), [mem](Mono_Time *ptr) { mono_time_free(mem, ptr); });
5960
assert(mono_time != nullptr);

0 commit comments

Comments
 (0)