diff options
author | Pavel Reichl <preichl@redhat.com> | 2015-07-02 07:24:01 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-07-06 20:19:12 +0200 |
commit | 6aff93510b36799c1773d368cc218cd533c43161 (patch) | |
tree | 91b92866ffb1fc26ac3a562d05b9311783ad1632 | |
parent | 0aa18cc0bf3447ca734476926724f1632e160807 (diff) | |
download | sssd-6aff93510b36799c1773d368cc218cd533c43161.tar.gz sssd-6aff93510b36799c1773d368cc218cd533c43161.tar.xz sssd-6aff93510b36799c1773d368cc218cd533c43161.zip |
Minor code improvements
pam_helpers.h had to be included after util.h.
Removed exara empty line.
Fixed code alignment
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r-- | src/db/sysdb_ops.c | 1 | ||||
-rw-r--r-- | src/responder/pam/pam_helpers.c | 1 | ||||
-rw-r--r-- | src/responder/pam/pam_helpers.h | 4 | ||||
-rw-r--r-- | src/tests/cmocka/test_pam_srv.c | 1 |
4 files changed, 3 insertions, 4 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 6d0aede8a..d1d43ebe6 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -3376,7 +3376,6 @@ int sysdb_cache_auth(struct sss_domain_info *domain, goto done; } - } else { DEBUG(SSSDBG_CONF_SETTINGS, "Authentication failed.\n"); authentication_successful = false; diff --git a/src/responder/pam/pam_helpers.c b/src/responder/pam/pam_helpers.c index 586888cae..2b931bd9e 100644 --- a/src/responder/pam/pam_helpers.c +++ b/src/responder/pam/pam_helpers.c @@ -21,7 +21,6 @@ */ -#include "util/util.h" #include "src/responder/pam/pam_helpers.h" struct pam_initgr_table_ctx { diff --git a/src/responder/pam/pam_helpers.h b/src/responder/pam/pam_helpers.h index 1e1d914df..614389706 100644 --- a/src/responder/pam/pam_helpers.h +++ b/src/responder/pam/pam_helpers.h @@ -23,6 +23,8 @@ #ifndef PAM_HELPERS_H_ #define PAM_HELPERS_H_ +#include "util/util.h" + errno_t pam_initgr_cache_set(struct tevent_context *ev, hash_table_t *id_table, char *name, @@ -33,6 +35,6 @@ errno_t pam_initgr_cache_set(struct tevent_context *ev, * May report other errors if the hash lookup fails. */ errno_t pam_initgr_check_timeout(hash_table_t *id_table, - char *name); + char *name); #endif /* PAM_HELPERS_H_ */ diff --git a/src/tests/cmocka/test_pam_srv.c b/src/tests/cmocka/test_pam_srv.c index 03faea249..0f6c272df 100644 --- a/src/tests/cmocka/test_pam_srv.c +++ b/src/tests/cmocka/test_pam_srv.c @@ -859,7 +859,6 @@ void test_pam_offline_chauthtok(void **state) assert_int_equal(ret, EOK); } - int main(int argc, const char *argv[]) { int rv; |