[SSSD] [PATCH] TESTS: Remove unused variable
Jakub Hrozek
jhrozek at redhat.com
Wed Sep 11 18:05:11 UTC 2013
Please see the attached patch.
-------------- next part --------------
>From 36e9ab1a8cb83fa32b976bf6dcc79131a07e7350 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Wed, 11 Sep 2013 20:02:29 +0200
Subject: [PATCH] TESTS: Remove unused variable
The tmpl variable was only ever used to default to FILE backend in case
absolute patch w/o ccache type was selected. Since backends are no
longer there, we can remove the variable, too.
---
src/tests/krb5_child-test.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c
index d4a1f804972b72c240a281dd2771e4fd97c4ee8b..959b1bd698284d0db16634357e39fcd076b9fa00 100644
--- a/src/tests/krb5_child-test.c
+++ b/src/tests/krb5_child-test.c
@@ -200,7 +200,6 @@ create_dummy_req(TALLOC_CTX *mem_ctx, const char *user,
struct passwd *pwd;
bool private = false;
errno_t ret;
- const char *tmpl;
/* The top level child request */
kr = talloc_zero(mem_ctx, struct krb5child_req);
@@ -233,9 +232,6 @@ create_dummy_req(TALLOC_CTX *mem_ctx, const char *user,
ret = dp_opt_set_string(kr->krb5_ctx->opts, KRB5_CCNAME_TMPL,
ccname_template);
if (ret != EOK) goto fail;
- tmpl = ccname_template;
- } else {
- tmpl = dp_opt_get_cstring(kr->krb5_ctx->opts, KRB5_CCNAME_TMPL);
}
if (timeout) {
--
1.8.3.1
More information about the sssd-devel
mailing list