mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 19:20:12 +01:00
VALUES_STATIC() was a macro to initialize the values_static pointer with a (static) strv array. For one, it lacked a "const" in "(const char *[])", which means the data is not put in a read only section by the linker. That should be fixed. Anyway, we already have a macro for creating such constant strv arrays: NM_MAKE_STRV(). I think it is good to the concept of "initializing values_static" a name (VALUES_STATIC()). But it also hides (for better or worse), that this is a strv array. Let's use NM_MAKE_STRV() instead. By looking at the code, it's still clear that this initializes the "values_static" array, but it also makes it clear that this is a plain strv array. |
||
|---|---|---|
| .. | ||
| cli | ||
| common | ||
| tests | ||
| tui | ||
| meson.build | ||
| nm-online.c | ||