*/
#include "system.h"
-#include "crypto.h"
#include "conf.h"
#include "control.h"
#include "control_common.h"
#include "route.h"
#include "utils.h"
#include "xalloc.h"
+#include "random.h"
char controlcookie[65];
return control_return(c, REQ_DISCONNECT, -1);
}
- for list_each(connection_t, other, connection_list) {
+ for list_each(connection_t, other, &connection_list) {
if(strcmp(other->name, name)) {
continue;
}
free(localhost);
fclose(f);
-#ifndef HAVE_MINGW
+#ifndef HAVE_WINDOWS
int unix_fd = socket(AF_UNIX, SOCK_STREAM, 0);
if(unix_fd < 0) {
}
void exit_control(void) {
-#ifndef HAVE_MINGW
+#ifndef HAVE_WINDOWS
unlink(unixsocketname);
io_del(&unix_socket);
close(unix_socket.fd);