diff --git a/src/tests/cmocka/test_be_ptask.c b/src/tests/cmocka/test_be_ptask.c index 00acce2..057b26d 100644 --- a/src/tests/cmocka/test_be_ptask.c +++ b/src/tests/cmocka/test_be_ptask.c @@ -592,8 +592,8 @@ void test_be_ptask_create_sync(void **state) now = time(NULL); ret = be_ptask_create_sync(test_ctx, test_ctx->be_ctx, 10, 0, 0, 0, 0, - BE_PTASK_OFFLINE_SKIP, 0, test_be_ptask_sync, - test_ctx, "Test ptask", &ptask); + BE_PTASK_OFFLINE_SKIP, 0, test_be_ptask_sync, + test_ctx, "Test ptask", &ptask); assert_int_equal(ret, ERR_OK); assert_non_null(ptask); assert_non_null(ptask->timer); @@ -644,9 +644,9 @@ 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) { - default: + while ((opt = poptGetNextOpt(pc)) != -1) { + switch (opt) { + default: fprintf(stderr, "\nInvalid option %s: %s\n\n", poptBadOption(pc, 0), poptStrerror(opt)); poptPrintUsage(pc, stderr, 0);