From: Alejandro Colomar Date: Sun, 15 Mar 2026 13:05:21 +0000 (+0100) Subject: lib/: find_new_sub_*ids(): Remove dead assertions X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=8efbd44382fbc73e3855e6bd6987c1adc3eb92c9;p=thirdparty%2Fshadow.git lib/: find_new_sub_*ids(): Remove dead assertions The input to these functions is always an address (&x); that's guaranteed to be non-null. Signed-off-by: Alejandro Colomar --- diff --git a/lib/find_new_sub_gids.c b/lib/find_new_sub_gids.c index beb902ed6..082bd07b4 100644 --- a/lib/find_new_sub_gids.c +++ b/lib/find_new_sub_gids.c @@ -34,9 +34,6 @@ int find_new_sub_gids (id_t *range_start, unsigned long *range_count) unsigned long count; id_t start; - assert (range_start != NULL); - assert (range_count != NULL); - min = getdef_ulong ("SUB_GID_MIN", 100000UL); max = getdef_ulong ("SUB_GID_MAX", 600100000UL); count = getdef_ulong ("SUB_GID_COUNT", 65536); diff --git a/lib/find_new_sub_uids.c b/lib/find_new_sub_uids.c index c9c4993d4..1d4e08b73 100644 --- a/lib/find_new_sub_uids.c +++ b/lib/find_new_sub_uids.c @@ -34,9 +34,6 @@ int find_new_sub_uids (id_t *range_start, unsigned long *range_count) unsigned long count; id_t start; - assert (range_start != NULL); - assert (range_count != NULL); - min = getdef_ulong ("SUB_UID_MIN", 100000UL); max = getdef_ulong ("SUB_UID_MAX", 600100000UL); count = getdef_ulong ("SUB_UID_COUNT", 65536);