summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-16 10:25:09 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-16 10:25:09 +0000
commitf9e3282356eaffb767b01bc956c7df96f7a60502 (patch)
tree322c805abbaf57195f3d2623f9da6f41b7cebecc /src
parentchanged strerr to boost::system::error (diff)
small cleanup
Diffstat (limited to 'src')
-rw-r--r--src/anytun.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp
index b5d7e14..eb7c1a8 100644
--- a/src/anytun.cpp
+++ b/src/anytun.cpp
@@ -451,9 +451,9 @@ int main(int argc, char* argv[])
#ifndef NOSIGNALCONTROLLER
int ret = sig.run();
- return ret;
#else
receiver(&p);
+ int ret = 0;
#endif
// TODO cleanup threads here!
/*
@@ -480,6 +480,7 @@ int main(int argc, char* argv[])
if(connTo)
delete connTo;
*/
+ return ret;
}
catch(std::runtime_error& e)
{