X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincd.c;h=1ee8769fcaf32d91f745ef9cfdbafd3c7075d3b1;hb=3b117ab744100ca48f257ec6c9df83757cad8224;hp=022fb536dea5dca42e3cc276cae8b6ed32077742;hpb=28b7a53b693f6b4e70218a926e68a36ece54cda1;p=tinc diff --git a/src/tincd.c b/src/tincd.c index 022fb536..1ee8769f 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -29,16 +29,12 @@ #define _P1003_1B_VISIBLE #endif -#ifdef HAVE_SYS_MMAN_H -#include -#endif - #ifdef HAVE_LZO #include LZO1X_H #endif -#ifdef LZ4_H -#include LZ4_H +#ifdef HAVE_LZ4 +#include #endif #ifndef HAVE_MINGW @@ -65,9 +61,6 @@ static bool show_help = false; /* If nonzero, print the version on standard output and exit. */ static bool show_version = false; -/* If nonzero, use null ciphers and skip all key exchanges. */ -bool bypass_security = false; - #ifdef HAVE_MLOCKALL /* If nonzero, disable swapping for this process. */ static bool do_mlock = false; @@ -81,12 +74,6 @@ static bool do_chroot = false; static const char *switchuser = NULL; #endif -/* If nonzero, write log entries to a separate file. */ -bool use_logfile = false; - -/* If nonzero, use syslog instead of stderr in no-detach mode. */ -bool use_syslog = false; - char **g_argv; /* a copy of the cmdline arguments */ static int status = 1; @@ -143,7 +130,7 @@ static void usage(bool status) { "\n" "Report bugs to tinc@tinc-vpn.org.\n"; - fprintf(stderr, message, program_name); + printf(message, program_name); } }