Skip to content

Add a private "get mono_time" API to tox_private.h and use it in auto_tests. #2118

@iphydf

Description

@iphydf

Make it so we don't need to rely on dangerous casts here:

Mono_Time *mono_time = ((Messenger *)autotox->tox)->mono_time;

The cast here relies on the fact that mono_time is at the same struct offset in struct Messenger and struct Tox.

Metadata

Metadata

Assignees

Labels

P3Low prioritycleanupInternal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions