diff options
author | Christian Pointner <equinox@helsinki.at> | 2013-09-16 13:43:01 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2013-09-16 13:43:01 (GMT) |
commit | 549acaede7b62e4fcbb7c0bbc8b5e8f5ac420d9b (patch) | |
tree | 6639cea4b96bea4261fe40882f472b03a0f76b5e /daemon.h | |
parent | ba9fe029984b9b1614bdfc81072a3e95675bd74a (diff) |
code cleanups and fixes (new gcc and clang)
Diffstat (limited to 'daemon.h')
-rw-r--r-- | daemon.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 - |