diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-09-23 08:47:53 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-09-28 09:06:57 -0400 |
commit | 4a6a5421113ab662a665c62ed6a24b61a5a36950 (patch) | |
tree | 037524123a5e1685d5e2942d1d5983896146a06a /src/providers/ldap | |
parent | db2c71bd61b7e1610ea1a178ef05059ef952685a (diff) | |
download | sssd-4a6a5421113ab662a665c62ed6a24b61a5a36950.tar.gz sssd-4a6a5421113ab662a665c62ed6a24b61a5a36950.tar.xz sssd-4a6a5421113ab662a665c62ed6a24b61a5a36950.zip |
Multiline macro cleanup
This is mostly a cosmetic patch.
The purpose of wrapping a multi-line macro in a do { } while(0) is to
make the macro usable as a regular statement, not a compound statement.
When the while(0) is terminated with a semicolon, the do { } while(0);
block becomes a compound statement again.
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/ldap_auth.c | 4 | ||||
-rw-r--r-- | src/providers/ldap/sdap_child_helpers.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c index 390ea8bc3..df4557938 100644 --- a/src/providers/ldap/ldap_auth.c +++ b/src/providers/ldap/ldap_auth.c @@ -263,7 +263,7 @@ static errno_t find_password_expiration_attributes(TALLOC_CTX *mem_ctx, } else if (strcasecmp(pwd_policy, PWD_POL_OPT_MIT) == 0) { mark = ldb_msg_find_attr_as_string(msg, SYSDB_KRBPW_LASTCHANGE, NULL); if (mark != NULL) { - DEBUG(9, ("Found Kerberos password expiration attributes.\n")) + DEBUG(9, ("Found Kerberos password expiration attributes.\n")); val = ldb_msg_find_attr_as_string(msg, SYSDB_KRBPW_EXPIRATION, NULL); if (val != NULL) { @@ -285,7 +285,7 @@ static errno_t find_password_expiration_attributes(TALLOC_CTX *mem_ctx, } else if (strcasecmp(pwd_policy, PWD_POL_OPT_SHADOW) == 0) { mark = ldb_msg_find_attr_as_string(msg, SYSDB_SHADOWPW_LASTCHANGE, NULL); if (mark != NULL) { - DEBUG(9, ("Found shadow password expiration attributes.\n")) + DEBUG(9, ("Found shadow password expiration attributes.\n")); spwd = talloc_zero(mem_ctx, struct spwd); if (spwd == NULL) { DEBUG(1, ("talloc failed.\n")); diff --git a/src/providers/ldap/sdap_child_helpers.c b/src/providers/ldap/sdap_child_helpers.c index d0f6caeb2..5990fc3ac 100644 --- a/src/providers/ldap/sdap_child_helpers.c +++ b/src/providers/ldap/sdap_child_helpers.c @@ -479,7 +479,7 @@ int setup_child(struct sdap_id_ctx *ctx) SDAP_KRB5_KEYTAB)); if (ret != EOK) { - DEBUG(0, ("Could not verify keytab\n")) + DEBUG(0, ("Could not verify keytab\n")); return ret; } |