summaryrefslogtreecommitdiff
path: root/daemon.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2013-09-16 13:43:01 (GMT)
committerChristian Pointner <equinox@helsinki.at>2013-09-16 13:43:01 (GMT)
commit549acaede7b62e4fcbb7c0bbc8b5e8f5ac420d9b (patch)
tree6639cea4b96bea4261fe40882f472b03a0f76b5e /daemon.h
parentba9fe029984b9b1614bdfc81072a3e95675bd74a (diff)
code cleanups and fixes (new gcc and clang)
Diffstat (limited to 'daemon.h')
-rw-r--r--daemon.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/daemon.h b/daemon.h
index 22e0ac0..2b3b00a 100644
--- a/daemon.h
+++ b/daemon.h
@@ -13,7 +13,7 @@
* message authentication based on the methodes used by SRTP. It is
* intended to deliver a generic, scaleable and secure solution for
* tunneling and relaying of packets of any protocol.
- *
+ *
*
* Copyright (C) 2007-2008 Christian Pointner <equinox@anytun.org>
*
@@ -105,7 +105,6 @@ int priv_drop(priv_info_t* priv)
return 0;
}
-
int do_chroot(const char* chrootdir)
{
if(getuid() != 0) {
@@ -122,6 +121,7 @@ int do_chroot(const char* chrootdir)
log_printf(ERROR, "can't change to /: %s", strerror(errno));
return -1;
}
+ return 0;
}
void daemonize()
@@ -170,4 +170,3 @@ void daemonize()
}
#endif
-