summaryrefslogtreecommitdiff
path: root/server/src/pracrod.cc
diff options
context:
space:
mode:
authordeva <deva>2007-09-03 09:11:33 +0000
committerdeva <deva>2007-09-03 09:11:33 +0000
commita34402b79b38624a29ed8ea4e059af817266e6b8 (patch)
tree4df1d9a5756e37c304ddd8b58ed3e12c4a3894c1 /server/src/pracrod.cc
parent27bc1afc3aa6e0b4465946aa870573499b85ae5d (diff)
Implemented the first version of the XML request. Fixed eXpat incompatability with XML_Get/SetUserData and the void* in the handler functions.
Diffstat (limited to 'server/src/pracrod.cc')
-rw-r--r--server/src/pracrod.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/pracrod.cc b/server/src/pracrod.cc
index 7fce884..cd5bfe7 100644
--- a/server/src/pracrod.cc
+++ b/server/src/pracrod.cc
@@ -84,11 +84,11 @@ void reload(int fisk)
{
int port;
printf("Reload!\n");
- port = Pentominos::config()->lookup("port");
- Pentominos::config()->reload();
+ port = config()->lookup("port");
+ config()->reload();
{ // Force wake the server process for reinitialization.
- Pentominos::TCPSocket socket;
+ TCPSocket socket;
socket.connect("localhost", port);
}
}
@@ -158,13 +158,13 @@ int main(int argc, char *argv[])
char *cfname = NULL;
if(!configfile) cfname = ETC"/pracrod.conf";
else cfname = configfile;
- Pentominos::Configuration conf(cfname);
- Pentominos::initConfig(&conf);
+ Configuration conf(cfname);
+ initConfig(&conf);
if(!user) {
std::string userstr;
try {
- user = (char*)(const char*)Pentominos::config()->lookup("user");
+ user = (char*)(const char*)config()->lookup("user");
} catch( ... ) {
printf("User not found in config.\n");
}
@@ -192,7 +192,7 @@ int main(int argc, char *argv[])
if(!group) {
std::string groupstr;
try {
- group = (char*)(const char*)Pentominos::config()->lookup("group");
+ group = (char*)(const char*)config()->lookup("group");
} catch( ... ) {
printf("Group not found in config.\n");
}