]> git.ipfire.org Git - thirdparty/samba.git/commit
lib: Factor out ADD_TO_MALLOC_ARRAY()
authorVolker Lendecke <vl@samba.org>
Mon, 30 Sep 2024 08:34:17 +0000 (10:34 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 2 Oct 2024 13:12:30 +0000 (13:12 +0000)
commit14a5336802450d8c0864ba64c302e591e0389a19
tree79ecd12015814b2282ce6cfdd19841109b074d64
parentf3e7d450eae8a89bbe84da78b69c8956e750f57d
lib: Factor out ADD_TO_MALLOC_ARRAY()

ADD_TO_ARRAY with an explicit NULL mem_ctx is only used in 3
places. I've checked the other places, and I think I made sure that the
mem_ctx being passed in is non-NULL everywhere else.

This makes the "legacy" use with SMB_REALLOC more obvious.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/include/smb_macros.h
source3/modules/vfs_hpuxacl.c
source3/modules/vfs_solarisacl.c
source3/utils/net_rpc_shell.c