[SSSD] [PATCH] Indentation fix

Jakub Hrozek jhrozek at redhat.com
Mon Dec 3 22:50:56 UTC 2012


A minor style fix I found while testing the ghost users. Intended for
master only.
-------------- next part --------------
>From 2f1af0eec7fc2a15743ee3b69a37aa52a0842825 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Tue, 20 Nov 2012 13:31:13 +0100
Subject: [PATCH] Indentation fix

---
 src/providers/ldap/sdap_async_groups.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index c5d1fa1a9c50f4851e5366f52e2e89a450b9be5b..26f36fb93f4316f5b610ee2251479444493f1158 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -2050,8 +2050,7 @@ static errno_t sdap_nested_group_populate_users(TALLOC_CTX *mem_ctx,
         if (ret != EOK && ret != ENOENT) {
             DEBUG(1, ("Error checking cache for user entry\n"));
             goto done;
-        }
-        if (ret == EOK) {
+        } else if (ret == EOK) {
             /* The entry is cached but expired. Update the username
              * if needed. */
             if (count != 1) {
@@ -2075,9 +2074,7 @@ static errno_t sdap_nested_group_populate_users(TALLOC_CTX *mem_ctx,
             if (ret) goto done;
             ret = sysdb_set_user_attr(sysdb, sysdb_name, attrs, SYSDB_MOD_REP);
             if (ret != EOK) goto done;
-        }
-        else
-        {
+        } else {
             key.type = HASH_KEY_STRING;
             key.str = discard_const(original_dn);
             value.type = HASH_VALUE_PTR;
-- 
1.8.0.1



More information about the sssd-devel mailing list