mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-04 15:30:41 +02:00
sd_event_source is either used for sd_event_add_io() or sd_event_add_time(). Depending on the use, different fields of the struct are relevant. Refactor the struct to have a union. This reduces the size of the struct, but more importantly, it makes it clear which fields are used in which context. |
||
|---|---|---|
| .. | ||
| src | ||
| nm-sd-adapt.c | ||
| nm-sd-adapt.h | ||