]> git.ipfire.org Git - thirdparty/shadow.git/commit
nss/libsubid: simplify the ranges variable for list_owner_ranges 340/head
authorSerge Hallyn <serge@hallyn.com>
Sat, 22 May 2021 17:16:50 +0000 (12:16 -0500)
committerSerge Hallyn <serge@hallyn.com>
Sat, 22 May 2021 22:59:57 +0000 (17:59 -0500)
commit3d670ba7ed58f910f1395569ea14cd39fd046cc7
treefba0f6fa9284d4d7bd73cd9b4255a1d277ee334e
parent322db32971c02769359f7c095a36ea5768f2b265
nss/libsubid: simplify the ranges variable for list_owner_ranges

Following alexey-tikhonov's suggestion.

Since we've dropped the 'owner' field in the data returned for
get_subid_ranges, we can just return a single allocated array of
simple structs.  This means we can return a ** instead of ***, and
we can get rid of the subid_free_ranges() helper, since the caller
can just free() the returned data.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
configure.ac
lib/prototypes.h
lib/subordinateio.c
lib/subordinateio.h
libsubid/api.c
libsubid/subid.h
src/list_subid_ranges.c
tests/libsubid/04_nss/libsubid_zzz.c