X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fcontrol.c;h=e3901a6da8e496a36c85f58eb67beb4f9a8c13dd;hb=5d78e497f1c352c8d490eed1d44d128523a34572;hp=220781518848adbcea16cd1b789e4a1abb661788;hpb=d6c50eb73ad49bd2eac67214995dff76b7a20661;p=tinc diff --git a/src/control.c b/src/control.c index 22078151..e3901a6d 100644 --- a/src/control.c +++ b/src/control.c @@ -28,9 +28,6 @@ #include "utils.h" #include "xalloc.h" -static int control_socket = -1; -static struct event control_event; -static splay_tree_t *control_socket_tree; char controlcookie[65]; extern char *controlcookiename; @@ -112,7 +109,7 @@ bool init_control() { } #ifdef HAVE_FCHMOD - fchmod(f, 0600); + fchmod(fileno(f), 0600); #else chmod(controlcookiename, 0600); #endif