diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-09-01 09:58:05 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-09-18 17:20:45 +0200 |
commit | 2cec08a3174bff951c048c57b4b0e4517ad6b7b1 (patch) | |
tree | d2c3cc28af68613ed31cbdd7438596e8468006af | |
parent | 6cb5bad3c8e2f35ca9dce1800a506d626f90c079 (diff) | |
download | sssd-2cec08a3174bff951c048c57b4b0e4517ad6b7b1.tar.gz sssd-2cec08a3174bff951c048c57b4b0e4517ad6b7b1.tar.xz sssd-2cec08a3174bff951c048c57b4b0e4517ad6b7b1.zip |
test_ldap_id_cleanup: Fix coding style issues
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
-rw-r--r-- | src/tests/cmocka/test_ldap_id_cleanup.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/cmocka/test_ldap_id_cleanup.c b/src/tests/cmocka/test_ldap_id_cleanup.c index e4c277fa8..e40f2b6dd 100644 --- a/src/tests/cmocka/test_ldap_id_cleanup.c +++ b/src/tests/cmocka/test_ldap_id_cleanup.c @@ -161,10 +161,10 @@ static errno_t invalidate_group(TALLOC_CTX *ctx, sys_attrs = sysdb_new_attrs(ctx); if (sys_attrs) { ret = sysdb_attrs_add_time_t(sys_attrs, - SYSDB_CACHE_EXPIRE, 1); + SYSDB_CACHE_EXPIRE, 1); if (ret == EOK) { - ret = sysdb_set_group_attr(domain, name, sys_attrs, - SYSDB_MOD_REP); + ret = sysdb_set_group_attr(domain, name, sys_attrs, + SYSDB_MOD_REP); } else { DEBUG(SSSDBG_MINOR_FAILURE, "Could not add expiration time to attributes\n"); @@ -211,13 +211,13 @@ static void test_id_cleanup_exp_group(void **state) ret = sysdb_store_user(test_ctx->domain, "test_user", NULL, 10001, 10002, "Test user", NULL, NULL, NULL, NULL, NULL, - 0,0); + 0, 0); assert_int_equal(ret, EOK); ret = sysdb_store_user(test_ctx->domain, "test_user2", NULL, 10002, 10004, "Test user", NULL, NULL, NULL, NULL, NULL, - 0,0); + 0, 0); assert_int_equal(ret, EOK); sdom.dom = test_ctx->domain; @@ -277,8 +277,8 @@ int main(int argc, const char *argv[]) struct poptOption long_options[] = { POPT_AUTOHELP SSSD_DEBUG_OPTS - {"no-cleanup", 'n', POPT_ARG_NONE, &no_cleanup, 0, - _("Do not delete the test database after a test run"), NULL }, + { "no-cleanup", 'n', POPT_ARG_NONE, &no_cleanup, 0, + _("Do not delete the test database after a test run"), NULL }, POPT_TABLEEND }; @@ -291,8 +291,8 @@ int main(int argc, const char *argv[]) debug_level = SSSDBG_INVALID; pc = poptGetContext(argv[0], argc, argv, long_options, 0); - while((opt = poptGetNextOpt(pc)) != -1) { - switch(opt) { + while ((opt = poptGetNextOpt(pc)) != -1) { + switch (opt) { default: fprintf(stderr, "\nInvalid option %s: %s\n\n", poptBadOption(pc, 0), poptStrerror(opt)); |