Re: [Freeipa-devel] [PATCH] Remove unused variable

2013-07-15 Thread Martin Kosek
On 07/15/2013 12:27 PM, Tomas Babej wrote:
> On Wednesday 10 of July 2013 22:27:16 Jakub Hrozek wrote:
> 
>> Hi,
> 
>>
> 
>> I was doing quite a few builds of freeipa for testing and patch reviews
> 
>> lately and found a couple of unused variables. The attached patch
> 
>> removed the variables.
> 
>  
> 
> ACK
> 
>  
> 
> Tomas
> 

Pushed to master.

Martin

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel


Re: [Freeipa-devel] [PATCH] Remove unused variable

2013-07-15 Thread Tomas Babej
On Wednesday 10 of July 2013 22:27:16 Jakub Hrozek wrote:
> Hi,
> 
> I was doing quite a few builds of freeipa for testing and patch reviews
> lately and found a couple of unused variables. The attached patch
> removed the variables.

ACK

Tomas___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

[Freeipa-devel] [PATCH] Remove unused variable

2013-07-10 Thread Jakub Hrozek
Hi,

I was doing quite a few builds of freeipa for testing and patch reviews
lately and found a couple of unused variables. The attached patch
removed the variables.
>From f3408502fe3e4392dff4085b58670241cd1956ae Mon Sep 17 00:00:00 2001
From: Jakub Hrozek 
Date: Tue, 9 Jul 2013 21:55:04 +0200
Subject: [PATCH] Remove unused variable

---
 daemons/ipa-slapi-plugins/ipa-lockout/ipa_lockout.c| 4 
 daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync-config.c | 1 -
 2 files changed, 5 deletions(-)

diff --git a/daemons/ipa-slapi-plugins/ipa-lockout/ipa_lockout.c 
b/daemons/ipa-slapi-plugins/ipa-lockout/ipa_lockout.c
index 
fcd4d30a3d813204cc36c499fd9c0fa64156974f..0b3b84108476b0c6fc153b49cd0f65f9279035f2
 100644
--- a/daemons/ipa-slapi-plugins/ipa-lockout/ipa_lockout.c
+++ b/daemons/ipa-slapi-plugins/ipa-lockout/ipa_lockout.c
@@ -232,7 +232,6 @@ int ipalockout_getpolicy(Slapi_Entry *target_entry, 
Slapi_Entry **policy_entry,
  char **errstr)
 {
 int ldrc = 0;
-int flags = 0;
 int type_name_disposition = 0;
 Slapi_DN *pdn = NULL;
 
@@ -415,7 +414,6 @@ static int ipalockout_postop(Slapi_PBlock *pb)
 char *lastfail = NULL;
 int tries = 0;
 int failure = 1;
-int type_name_disposition = 0;
 char *actual_type_name = NULL;
 int attr_free_flags = 0;
 Slapi_ValueSet *values = NULL;
@@ -665,7 +663,6 @@ static int ipalockout_preop(Slapi_PBlock *pb)
 Slapi_Entry *target_entry = NULL;
 Slapi_Entry *policy_entry = NULL;
 Slapi_DN *sdn = NULL;
-Slapi_DN *pdn = NULL;
 Slapi_Value *objectclass = NULL;
 char *errstr = NULL;
 int ldrc = 0;
@@ -678,7 +675,6 @@ static int ipalockout_preop(Slapi_PBlock *pb)
 time_t last_failed = 0;
 char *lastfail = NULL;
 char *unlock_time = NULL;
-int type_name_disposition = 0;
 char *actual_type_name = NULL;
 int attr_free_flags = 0;
 Slapi_ValueSet *values = NULL;
diff --git a/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync-config.c 
b/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync-config.c
index 
ae7adecb6e04b5a736fa04b458d51a6fa3860d05..65ceaea685a276db91aab356dab617e260095873
 100644
--- a/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync-config.c
+++ b/daemons/ipa-slapi-plugins/ipa-winsync/ipa-winsync-config.c
@@ -853,7 +853,6 @@ ipa_winsync_config_refresh_domain(
 int loopdone = 0;
 int search_scope = LDAP_SCOPE_SUBTREE;
 int ret = LDAP_SUCCESS;
-Slapi_Value *sv = NULL;
 int acct_disable;
 char *inactivated_filter = NULL;
 char *activated_filter = NULL;
-- 
1.8.3.1

___
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel