diff options
author | Petr Cech <pcech@redhat.com> | 2016-05-04 05:44:35 -0400 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-05-05 10:47:54 +0200 |
commit | 9face844e3063b61ab19e1d82bbf3d9f9de76ac7 (patch) | |
tree | 75259ef2ef49768f3d265dc041a3bcbf73a3174d /src/tests/cmocka/test_negcache.c | |
parent | c90fdc85cfb552911e29b4d284fd4c40ea1bb4e9 (diff) | |
download | sssd-9face844e3063b61ab19e1d82bbf3d9f9de76ac7.tar.gz sssd-9face844e3063b61ab19e1d82bbf3d9f9de76ac7.tar.xz sssd-9face844e3063b61ab19e1d82bbf3d9f9de76ac7.zip |
TEST: Removing duplication of mock_rctx
There were duplicaton of mock_rctx().
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tests/cmocka/test_negcache.c')
-rw-r--r-- | src/tests/cmocka/test_negcache.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/tests/cmocka/test_negcache.c b/src/tests/cmocka/test_negcache.c index 45dcd43c8..e506107ea 100644 --- a/src/tests/cmocka/test_negcache.c +++ b/src/tests/cmocka/test_negcache.c @@ -98,34 +98,6 @@ mock_nctx(TALLOC_CTX *mem_ctx) return nctx; } -/* responder context is duplicated here because linking - * with common_mock_resp.c would get us duplicates - */ - -struct resp_ctx * -mock_rctx(TALLOC_CTX *mem_ctx, - struct tevent_context *ev, - struct sss_domain_info *domains, - void *pvt_ctx) -{ - struct resp_ctx *rctx; - errno_t ret; - - rctx = talloc_zero(mem_ctx, struct resp_ctx); - if (!rctx) return NULL; - - ret = sss_hash_create(rctx, 30, &rctx->dp_request_table); - if (ret != EOK) { - talloc_free(rctx); - return NULL; - } - - rctx->ev = ev; - rctx->domains = domains; - rctx->pvt_ctx = pvt_ctx; - return rctx; -} - struct test_state { struct sss_nc_ctx *ctx; struct nss_ctx *nctx; |