summaryrefslogtreecommitdiff
path: root/src/syncCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/syncCommand.cpp')
-rw-r--r--src/syncCommand.cpp36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/syncCommand.cpp b/src/syncCommand.cpp
index 8668504..1f7548e 100644
--- a/src/syncCommand.cpp
+++ b/src/syncCommand.cpp
@@ -11,7 +11,7 @@
* tunneling and relaying of packets of any protocol.
*
*
- * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl,
+ * Copyright (C) 2007-2009 Othmar Gsenger, Erwin Nindl,
* Christian Pointner <satp@wirdorange.org>
*
* This file is part of Anytun.
@@ -31,28 +31,30 @@
*/
#include "syncCommand.h"
-SyncCommand::SyncCommand(ConnectionList & cl )
-{
- scc_ = new SyncConnectionCommand(cl);
- src_ = new SyncRouteCommand();
+SyncCommand::SyncCommand(ConnectionList& cl)
+{
+ scc_ = new SyncConnectionCommand(cl);
+ src_ = new SyncRouteCommand();
}
-SyncCommand::SyncCommand(ConnectionList & cl, u_int16_t mux )
-{
- scc_ = new SyncConnectionCommand(cl,mux);
- src_=NULL;
+SyncCommand::SyncCommand(ConnectionList& cl, u_int16_t mux)
+{
+ scc_ = new SyncConnectionCommand(cl,mux);
+ src_=NULL;
}
-SyncCommand::SyncCommand(NetworkPrefix np )
-{
- scc_ = NULL;
- src_ = new SyncRouteCommand(np);
+SyncCommand::SyncCommand(NetworkPrefix np)
+{
+ scc_ = NULL;
+ src_ = new SyncRouteCommand(np);
}
SyncCommand::~SyncCommand()
{
- if (scc_)
- delete scc_;
- if (src_)
- delete src_;
+ if(scc_) {
+ delete scc_;
+ }
+ if(src_) {
+ delete src_;
+ }
}