From 7c9da42db071cf3de36bac4bb18e80dc82b3a054 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sat, 18 May 2024 23:45:46 +0200 Subject: [PATCH] lib/sssd.c: Style fixes Signed-off-by: Alejandro Colomar --- lib/sssd.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/sssd.c b/lib/sssd.c index 0a92144bc..4db799543 100644 --- a/lib/sssd.c +++ b/lib/sssd.c @@ -16,17 +16,20 @@ #include "shadowlog_internal.h" + #define MSG_SSSD_FLUSH_CACHE_FAILED "%s: Failed to flush the sssd cache." -int sssd_flush_cache (int dbflags) + +int +sssd_flush_cache(int dbflags) { - int status, code, rv; - const char *cmd = "/usr/sbin/sss_cache"; - struct stat sb; - char *sss_cache_args = NULL; - const char *spawnedArgs[] = {"sss_cache", NULL, NULL}; - const char *spawnedEnv[] = {NULL}; - int i = 0; + int status, code, rv; + int i = 0; + char *sss_cache_args = NULL; + const char *cmd = "/usr/sbin/sss_cache"; + const char *spawnedArgs[] = {"sss_cache", NULL, NULL}; + const char *spawnedEnv[] = {NULL}; + struct stat sb; rv = stat(cmd, &sb); if (rv == -1 && errno == ENOENT) -- 2.47.3