From d01bc8a91e90a818786b46625249fc38ead7be4d Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 12 Aug 2004 06:30:03 +0000 Subject: r1758: Move and enhance the add_string_to_array function as per volker job on trunk (This used to be commit 606caddeb95382287fa41a5017ca473d0301be6b) --- source4/torture/rpc/samr.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index c73672689e..1a48aaa944 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -2315,21 +2315,6 @@ static BOOL test_QueryDomainInfo2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return True; } -void add_string_to_array(TALLOC_CTX *mem_ctx, - const char *str, const char ***strings, int *num) -{ - *strings = talloc_realloc(mem_ctx, *strings, - ((*num)+1) * sizeof(**strings)); - - if (*strings == NULL) - return; - - (*strings)[*num] = str; - *num += 1; - - return; -} - /* Test whether querydispinfo level 5 and enumdomgroups return the same set of group names. */ static BOOL test_GroupList(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, -- cgit