X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincd.c;h=23845fff1f2942ada86b7e229c96ab307adf2347;hb=33f241d97852d7a171f1aaf1bda7f66356ff889e;hp=84971495d4b2831b10b6c709cf7042d6d8de898a;hpb=434e57ae5ee79b3d990c4d75358047bad641998b;p=tinc diff --git a/src/tincd.c b/src/tincd.c index 84971495..23845fff 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -64,7 +64,7 @@ #include "xalloc.h" /* The name this program was run with. */ -static char *program_name = NULL; +char *program_name = NULL; /* If nonzero, display usage information and exit. */ static bool show_help = false; @@ -339,7 +339,7 @@ static bool drop_privs(void) { } #ifdef HAVE_MINGW -# define setpriority(level) SetPriorityClass(GetCurrentProcess(), (level)) +# define setpriority(level) !SetPriorityClass(GetCurrentProcess(), (level)) #else # define NORMAL_PRIORITY_CLASS 0 # define BELOW_NORMAL_PRIORITY_CLASS 10