[pisa-src] r1048 - in trunk: pisacd pisasd

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 08 Oct 2009 12:19:24 +0200

Author: tjansen
Date: Thu Oct  8 12:19:24 2009
New Revision: 1048

Log:
Cosmetic fixes for {c,s}dconf_setup_conffile.

Modified:
   trunk/pisacd/cdconf.c
   trunk/pisasd/sdconf.c

Modified: trunk/pisacd/cdconf.c
==============================================================================
--- trunk/pisacd/cdconf.c       Thu Oct  8 12:03:53 2009        (r1047)
+++ trunk/pisacd/cdconf.c       Thu Oct  8 12:19:24 2009        (r1048)
@@ -86,10 +86,8 @@
  */
 void cdconf_setup_conffile(cd_conf *cdconf)
 {
-       /* Use default path if no config file was given via commandline argument
-        */
-       if (cdconf->conffile[0] == '\0')
-       {
+       /* Use default path if no config file was given via commandline 
argument */
+       if (cdconf->conffile[0] == '\0') {
                        pisa_check_and_create_dir(PISA_CONFDIR_PATH, 
DEFAULT_CONFIG_DIR_MODE);
                        PISA_STRNCPY(cdconf->conffile, 
PISACD_CONFFILE_FULLPATH, sizeof(cdconf->conffile));
        }

Modified: trunk/pisasd/sdconf.c
==============================================================================
--- trunk/pisasd/sdconf.c       Thu Oct  8 12:03:53 2009        (r1047)
+++ trunk/pisasd/sdconf.c       Thu Oct  8 12:19:24 2009        (r1048)
@@ -91,13 +91,10 @@
  */
 void sdconf_setup_conffile(sd_conf *sdconf)
 {
-       /* Use default path if no config file was given per commandline argument
-        */
+       /* Use default path if no config file was given per commandline 
argument */
        if (sdconf->conffile[0] == '\0') {
-
                        pisa_check_and_create_dir(PISA_CONFDIR_PATH, 
DEFAULT_CONFIG_DIR_MODE);
                        PISA_STRNCPY(sdconf->conffile, 
PISASD_CONFFILE_FULLPATH, sizeof(sdconf->conffile));
-
        }
 
        if (pisa_cfg_setup_file(sdconf->conffile) <= 0) {
@@ -112,6 +109,7 @@
 {
         pisa_cfg_get_bool_value("is_relay",&sdconf->is_relay);
 }
+
 /**
  * Read basic settings from the configuration file
  */

Other related posts:

  • » [pisa-src] r1048 - in trunk: pisacd pisasd - Thomas Jansen