From: Guus Sliepen Date: Thu, 11 Dec 2008 15:42:46 +0000 (+0000) Subject: Fix compiler warnings. X-Git-Tag: release-1.1pre1~127 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a9bdfb424e7a469d15156aa44bbe2fd0b8e28531;p=oweals%2Ftinc.git Fix compiler warnings. --- diff --git a/src/control.c b/src/control.c index 2673385..35d7d85 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 567e1c3..38bc4cf 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];