summaryrefslogtreecommitdiff
path: root/src/monitor
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-09-27 18:19:38 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-10-02 16:07:33 +0200
commitf3c6d7d83f1906369fc64a1480d1c014f693b0cd (patch)
tree167f3df35139962a0d83b9ad18ffddca1e201d41 /src/monitor
parent7cbcb70af10c251b75958f05b2635cf2d702ba53 (diff)
downloadsssd-f3c6d7d83f1906369fc64a1480d1c014f693b0cd.tar.gz
sssd-f3c6d7d83f1906369fc64a1480d1c014f693b0cd.tar.bz2
sssd-f3c6d7d83f1906369fc64a1480d1c014f693b0cd.zip
Fix few coding style issues
Diffstat (limited to 'src/monitor')
-rw-r--r--src/monitor/monitor.c9
1 files changed, 6 insertions, 3 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;