From 34de8a00f5b480ef3f46d2516e072e4acf1ebf87 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 7 Jul 2014 21:29:05 +0200 Subject: LDAP: Remove unused output parameter _dn from sdap_parse_entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No caller directly accessed this parameter. Moreover, it seemed useless since the same data is available as SYSDB_ORIGINAL_DN in the attributes. Reviewed-by: Michal Židek --- src/tests/cmocka/test_sdap.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/tests') diff --git a/src/tests/cmocka/test_sdap.c b/src/tests/cmocka/test_sdap.c index 8fdf1a4a2..33cefcc88 100644 --- a/src/tests/cmocka/test_sdap.c +++ b/src/tests/cmocka/test_sdap.c @@ -255,7 +255,7 @@ void test_parse_with_map(void **state) ret = sdap_parse_entry(test_ctx, &test_ctx->sh, &test_ctx->sm, map, SDAP_OPTS_USER, - &attrs, NULL, false); + &attrs, false); assert_int_equal(ret, ERR_OK); assert_int_equal(attrs->num, 4); @@ -315,8 +315,7 @@ void test_parse_no_map(void **state) set_entry_parse(&test_nomap_entry); ret = sdap_parse_entry(test_ctx, &test_ctx->sh, &test_ctx->sm, - NULL, 0, - &attrs, NULL, false); + NULL, 0, &attrs, false); assert_int_equal(ret, ERR_OK); assert_int_equal(attrs->num, 3); @@ -361,7 +360,7 @@ void test_parse_no_attrs(void **state) ret = sdap_parse_entry(test_ctx, &test_ctx->sh, &test_ctx->sm, map, SDAP_OPTS_USER, - &attrs, NULL, false); + &attrs, false); assert_int_equal(ret, ERR_OK); assert_int_equal(attrs->num, 1); @@ -408,7 +407,7 @@ void test_parse_dups(void **state) ret = sdap_parse_entry(test_ctx, &test_ctx->sh, &test_ctx->sm, map, SDAP_OPTS_USER, - &attrs, NULL, false); + &attrs, false); assert_int_equal(ret, ERR_OK); assert_int_equal(attrs->num, 3); @@ -451,7 +450,7 @@ void test_parse_bad_oc(void **state) ret = sdap_parse_entry(test_ctx, &test_ctx->sh, &test_ctx->sm, map, SDAP_OPTS_USER, - &attrs, NULL, false); + &attrs, false); assert_int_not_equal(ret, ERR_OK); talloc_free(map); @@ -484,7 +483,7 @@ void test_parse_no_oc(void **state) ret = sdap_parse_entry(test_ctx, &test_ctx->sh, &test_ctx->sm, map, SDAP_OPTS_USER, - &attrs, NULL, false); + &attrs, false); assert_int_not_equal(ret, ERR_OK); talloc_free(map); @@ -519,7 +518,7 @@ void test_parse_no_dn(void **state) ret = sdap_parse_entry(test_ctx, &test_ctx->sh, &test_ctx->sm, map, SDAP_OPTS_USER, - &attrs, NULL, false); + &attrs, false); assert_int_not_equal(ret, ERR_OK); talloc_free(map); -- cgit