NetworkManager/src/core/ndisc
Thomas Haller ffd8baa49f
all: use nm_g_array_{index,first,last,index_p}() instead of g_array_index()
These variants provide additional nm_assert() checks, and are thus
preferable.

Note that we cannot just blindly replace &g_array_index() with
&nm_g_array_index(), because the latter would not allow getting a
pointer at index [arr->len]. That might be a valid (though uncommon)
usecase. The correct replacement of &g_array_index() is thus
nm_g_array_index_p().

I checked the code manually and replaced uses of nm_g_array_index_p()
with &nm_g_array_index(), if that was a safe thing to do. The latter
seems preferable, because it is familar to &g_array_index().
2022-09-15 12:39:07 +02:00
..
tests ndisc/tests: relex check in test_dns_solicit_loop() 2022-05-10 08:49:49 +02:00
nm-fake-ndisc.c all: use nm_g_array_{index,first,last,index_p}() instead of g_array_index() 2022-09-15 12:39:07 +02:00
nm-fake-ndisc.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-lndp-ndisc.c all: use nm_g_array_{index,first,last,index_p}() instead of g_array_index() 2022-09-15 12:39:07 +02:00
nm-lndp-ndisc.h core: rework IP configuration in NetworkManager using layer 3 configuration 2021-11-18 16:21:29 +01:00
nm-ndisc-private.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-ndisc.c all: use nm_g_array_{index,first,last,index_p}() instead of g_array_index() 2022-09-15 12:39:07 +02:00
nm-ndisc.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00