diff options
Diffstat (limited to 'server/src/pracrod.cc')
-rw-r--r-- | server/src/pracrod.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/server/src/pracrod.cc b/server/src/pracrod.cc index 134b212..fe8fb63 100644 --- a/server/src/pracrod.cc +++ b/server/src/pracrod.cc @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) int option_index = 0; while(1) { - int this_option_optind = optind ? optind : 1; + // int this_option_optind = optind ? optind : 1; static struct option long_options[] = { {"foreground", no_argument, 0, 'f'}, {"config", required_argument, 0, 'c'}, @@ -167,8 +167,11 @@ int main(int argc, char *argv[]) } } + char defval[512]; + sprintf(defval, ETC"/pracrod.conf"); + char *cfname = NULL; - if(!configfile) cfname = ETC"/pracrod.conf"; + if(!configfile) cfname = defval;//ETC"/pracrod.conf"; else cfname = configfile; Configuration conf(cfname); initConfig(&conf); |