[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Freeipa-devel] [PATCH 0208] Remove local variables which shadow variables from a upper level



Hello,

Remove local variables which shadow variables from a upper level.

This patch should go to branches v3 and master.

--
Petr^2 Spacek

From 92bf6a1b7808ffe779dbeed18ef845b18f4927fe Mon Sep 17 00:00:00 2001
From: Petr Spacek <pspacek redhat com>
Date: Fri, 6 Dec 2013 14:29:16 +0100
Subject: [PATCH] Remove local variables which shadow variables from a upper
 level.

Signed-off-by: Petr Spacek <pspacek redhat com>
---
 src/ldap_helper.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/ldap_helper.c b/src/ldap_helper.c
index 6a04d2b7da3977e3517fd7f449b7d218be6e1e93..5c54f4a29e418d3dc348ca7ec9811078c29832c2 100644
--- a/src/ldap_helper.c
+++ b/src/ldap_helper.c
@@ -2248,7 +2248,6 @@ ldap_reconnect(ldap_instance_t *ldap_inst, ldap_connection_t *ldap_conn,
 	if (ldap_conn->tries > 0) {
 		isc_time_t now;
 		int time_cmp;
-		isc_result_t result;
 
 		result = isc_time_now(&now);
 		time_cmp = isc_time_compare(&now, &ldap_conn->next_reconnect);
@@ -2293,7 +2292,6 @@ force_reconnect:
 		CHECK(setting_get_str("sasl_mech", ldap_inst->local_settings,
 				      &sasl_mech));
 		if (strcmp(sasl_mech, "GSSAPI") == 0) {
-			isc_result_t result;
 			CHECK(setting_get_str("krb5_principal",
 					      ldap_inst->local_settings,
 					      &krb5_principal));
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]