summaryrefslogtreecommitdiff
path: root/server/src/pracrod.cc
diff options
context:
space:
mode:
authordeva <deva>2008-05-20 14:03:10 +0000
committerdeva <deva>2008-05-20 14:03:10 +0000
commit556f00e4af55e78836c45f47b0662ab44bbb8b48 (patch)
treea5c315b35d400a397a35a86b86fe656d3a829af9 /server/src/pracrod.cc
parent91d56787bec83a3a7c2ad6afd84d2b82c5d869b9 (diff)
Made fixes pointed out by GCC 4.2 and -D_FORTIFY_SOURCES=2
Diffstat (limited to 'server/src/pracrod.cc')
-rw-r--r--server/src/pracrod.cc7
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);