shadow/tests/libsubid/04_nss
Alejandro Colomar efbbcade43 Use safer allocation macros
Use of these macros, apart from the benefits mentioned in the commit
that adds the macros, has some other good side effects:

-  Consistency in getting the size of the object from sizeof(type),
   instead of a mix of sizeof(type) sometimes and sizeof(*p) other
   times.

-  More readable code: no casts, and no sizeof(), so also shorter lines
   that we don't need to cut.

-  Consistency in using array allocation calls for allocations of arrays
   of objects, even when the object size is 1.

Cc: Valentin V. Bartenev <vbartenev@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-02-23 20:28:43 -06:00
..
empty subids: support nsswitch 2021-04-16 21:02:37 -05:00
libsubid_zzz.c Use safer allocation macros 2023-02-23 20:28:43 -06:00
Makefile subids: support nsswitch 2021-04-16 21:02:37 -05:00
nsswitch1.conf subids: support nsswitch 2021-04-16 21:02:37 -05:00
nsswitch2.conf subids: support nsswitch 2021-04-16 21:02:37 -05:00
nsswitch3.conf subids: support nsswitch 2021-04-16 21:02:37 -05:00
subidnss.test subids: support nsswitch 2021-04-16 21:02:37 -05:00
test_nss.c subids: support nsswitch 2021-04-16 21:02:37 -05:00
test_range nss test_range: make sure /etc/nsswitch.conf and /etc/subuid exists 2021-12-27 15:47:29 -06:00