From a9bdfb424e7a469d15156aa44bbe2fd0b8e28531 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 11 Dec 2008 15:42:46 +0000 Subject: [PATCH] Fix compiler warnings. --- src/control.c | 2 +- src/tincctl.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/control.c b/src/control.c index 26733854..35d7d85f 100644 --- a/src/control.c +++ b/src/control.c @@ -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; diff --git a/src/tincctl.c b/src/tincctl.c index 567e1c3d..38bc4cf7 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -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];