Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup: Rename obj to arr to comply with new tokstyle check. #2589

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions auto_tests/tox_new_test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "../toxcore/tox.h"

#include "../toxcore/ccompat.h"

int main(void) {
tox_kill(tox_new(nullptr, nullptr));
}
2 changes: 1 addition & 1 deletion other/bootstrap_daemon/docker/tox-bootstrapd.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3acc3a1f08e67dac66d91657a36d98be397fa3f14bc4798d3349605e37a90fc3 /usr/local/bin/tox-bootstrapd
c048b96d51bae728fa15ecac164944ff92ccb1a09bef3d0099550d7b9fd88cfe /usr/local/bin/tox-bootstrapd
2 changes: 1 addition & 1 deletion third_party/cmp
Submodule cmp updated 5 files
+1 −1 Makefile
+673 −587 cmp.c
+20 −84 cmp.h
+3 −3 examples/example2.c
+183 −189 test/tests.c
4 changes: 2 additions & 2 deletions toxcore/tox_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ Tox_Events *tox_events_iterate(Tox *tox, bool fail_hard, Tox_Err_Events_Iterate
}

non_null()
static bool tox_event_pack_handler(const void *obj, uint32_t index, const Logger *logger, Bin_Pack *bp)
static bool tox_event_pack_handler(const void *arr, uint32_t index, const Logger *logger, Bin_Pack *bp)
{
const Tox_Event *events = (const Tox_Event *)obj;
const Tox_Event *events = (const Tox_Event *)arr;
assert(events != nullptr);
return tox_event_pack(&events[index], bp);
}
Expand Down
Loading