Fix compiler warnings.
This commit is contained in:
parent
76165488f8
commit
a9bdfb424e
2 changed files with 1 additions and 3 deletions
|
@ -25,6 +25,7 @@
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
#include "control_common.h"
|
#include "control_common.h"
|
||||||
|
#include "graph.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "xalloc.h"
|
#include "xalloc.h"
|
||||||
|
|
||||||
|
@ -35,7 +36,6 @@ extern char *controlsocketname;
|
||||||
|
|
||||||
static void handle_control_data(struct bufferevent *event, void *data) {
|
static void handle_control_data(struct bufferevent *event, void *data) {
|
||||||
tinc_ctl_request_t req;
|
tinc_ctl_request_t req;
|
||||||
size_t size;
|
|
||||||
tinc_ctl_request_t res;
|
tinc_ctl_request_t res;
|
||||||
struct evbuffer *res_data = NULL;
|
struct evbuffer *res_data = NULL;
|
||||||
void *req_data;
|
void *req_data;
|
||||||
|
|
|
@ -440,9 +440,7 @@ static int send_ctl_request_cooked(int fd, enum request_type type,
|
||||||
int main(int argc, char *argv[], char *envp[]) {
|
int main(int argc, char *argv[], char *envp[]) {
|
||||||
struct sockaddr_un addr;
|
struct sockaddr_un addr;
|
||||||
tinc_ctl_greeting_t greeting;
|
tinc_ctl_greeting_t greeting;
|
||||||
tinc_ctl_request_t req;
|
|
||||||
int fd;
|
int fd;
|
||||||
int len;
|
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
program_name = argv[0];
|
program_name = argv[0];
|
||||||
|
|
Loading…
Reference in a new issue