projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include missing header files and source directories.
[tinc]
/
src
/
control.c
diff --git
a/src/control.c
b/src/control.c
index
2207815
..
e3901a6
100644
(file)
--- a/
src/control.c
+++ b/
src/control.c
@@
-28,9
+28,6
@@
#include "utils.h"
#include "xalloc.h"
#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;
char controlcookie[65];
extern char *controlcookiename;
@@
-112,7
+109,7
@@
bool init_control() {
}
#ifdef HAVE_FCHMOD
}
#ifdef HAVE_FCHMOD
- fchmod(f, 0600);
+ fchmod(f
ileno(f)
, 0600);
#else
chmod(controlcookiename, 0600);
#endif
#else
chmod(controlcookiename, 0600);
#endif