From f3c6d7d83f1906369fc64a1480d1c014f693b0cd Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Thu, 27 Sep 2012 18:19:38 +0200 Subject: Fix few coding style issues --- src/monitor/monitor.c | 9 ++++++--- src/responder/nss/nsssrv.c | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index a9422787..33248123 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -2508,12 +2508,15 @@ int main(int argc, const char *argv[]) if (opt_daemon) flags |= FLAGS_DAEMON; if (opt_interactive) flags |= FLAGS_INTERACTIVE; - if (opt_config_file) + if (opt_config_file) { config_file = talloc_strdup(tmp_ctx, opt_config_file); - else + } else { config_file = talloc_strdup(tmp_ctx, CONFDB_DEFAULT_CONFIG_FILE); - if(!config_file) + } + + if (!config_file) { return 6; + } /* we want a pid file check */ flags |= FLAGS_PID_FILE; diff --git a/src/responder/nss/nsssrv.c b/src/responder/nss/nsssrv.c index 5fa72494..1156c45f 100644 --- a/src/responder/nss/nsssrv.c +++ b/src/responder/nss/nsssrv.c @@ -474,7 +474,7 @@ int main(int argc, const char *argv[]) CONVERT_AND_SET_DEBUG_LEVEL(debug_level); - /* set up things like debug, signals, daemonization, etc... */ + /* set up things like debug, signals, daemonization, etc... */ debug_log_file = "sssd_nss"; ret = server_setup("sssd[nss]", 0, CONFDB_NSS_CONF_ENTRY, &main_ctx); -- cgit