Fix compiler warnings.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Dec 2008 15:42:46 +0000 (15:42 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 11 Dec 2008 15:42:46 +0000 (15:42 +0000)
src/control.c
src/tincctl.c

index 2673385..35d7d85 100644 (file)
@@ -25,6 +25,7 @@
 #include "conf.h"
 #include "control.h"
 #include "control_common.h"
+#include "graph.h"
 #include "logger.h"
 #include "xalloc.h"
 
@@ -35,7 +36,6 @@ extern char *controlsocketname;
 
 static void handle_control_data(struct bufferevent *event, void *data) {
        tinc_ctl_request_t req;
-       size_t size;
        tinc_ctl_request_t res;
        struct evbuffer *res_data = NULL;
        void *req_data;
index 567e1c3..38bc4cf 100644 (file)
@@ -440,9 +440,7 @@ static int send_ctl_request_cooked(int fd, enum request_type type,
 int main(int argc, char *argv[], char *envp[]) {
        struct sockaddr_un addr;
        tinc_ctl_greeting_t greeting;
-       tinc_ctl_request_t req;
        int fd;
-       int len;
        int result;
 
        program_name = argv[0];