X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=lib%2Fdropin.c;h=4ad32378bdbb541c90ac9e1303d8da059ff9988a;hb=075e6828a7533e7daa790225f17aa6bb39703278;hp=f6eda42a5ebd0797dfac120bc9c5c5352212d6f2;hpb=6f1e0ece4e61f30612ed84ca4640635a02892cc8;p=tinc diff --git a/lib/dropin.c b/lib/dropin.c index f6eda42a..4ad32378 100644 --- a/lib/dropin.c +++ b/lib/dropin.c @@ -38,8 +38,7 @@ Unless the argument noclose is non-zero, daemon() will redirect standard input, standard output and standard error to /dev/null. */ -int daemon(int nochdir, int noclose) -{ +int daemon(int nochdir, int noclose) { #ifdef HAVE_FORK pid_t pid; int fd; @@ -97,8 +96,7 @@ int daemon(int nochdir, int noclose) current directory name. If the environment variable PWD is set, and its value is correct, then that value will be returned. */ -char *get_current_dir_name(void) -{ +char *get_current_dir_name(void) { size_t size; char *buf; char *r; @@ -135,7 +133,6 @@ int asprintf(char **buf, const char *fmt, ...) { } int vasprintf(char **buf, const char *fmt, va_list ap) { -{ int status; va_list aq; int len;