summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/server.cc')
-rw-r--r--server/src/server.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index 1bfa2b0..af46119 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -109,7 +109,7 @@ static std::string handleCommits(Transaction *transaction, Database &db,
static std::string handleRequest(Transaction *transaction,
- TCPSocket *pentominos_socket,
+ TCPSocket &pentominos_socket,
Database &db,
JournalWriter &journalwriter,
MacroList &macrolist)
@@ -251,7 +251,7 @@ static std::string handleRequest(Transaction *transaction,
}
static std::string handleTransaction(Transaction *transaction,
- TCPSocket *pentominos_socket,
+ TCPSocket &pentominos_socket,
Database &db,
JournalWriter &journalwriter,
MacroList &macrolist)
@@ -333,7 +333,7 @@ static void handleConnection(TCPSocket *socket)
if(parser->parse(buf, size)) {
PRACRO_DEBUG(server, "Got complete XML document %d bytes used, %d bytes in current buffer.\n", parser->usedBytes(), size);
- socket->write(handleTransaction(transaction, &pentominos_socket, db, journalwriter, macrolist));
+ socket->write(handleTransaction(transaction, pentominos_socket, db, journalwriter, macrolist));
size = size - parser->usedBytes();
delete transaction; transaction = NULL;