From 98e476cd909c30cffe1acd1353432c7f5dfeb2a8 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 9 Apr 2011 13:55:40 +0200 Subject: [PATCH] fixes of some warnings --- src/deflate.c | 1 + src/naonet.c | 3 +-- src/xmalloc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/deflate.c b/src/deflate.c index 23793e3c..11d293f5 100644 --- a/src/deflate.c +++ b/src/deflate.c @@ -11,6 +11,7 @@ #include #include +#include "deflate.h" #include "xmalloc.h" #include "zlib.h" #include "die.h" diff --git a/src/naonet.c b/src/naonet.c index 37d931fb..c342d9df 100644 --- a/src/naonet.c +++ b/src/naonet.c @@ -175,7 +175,6 @@ static void *rx_thread(void *null) { int fd; size_t len; - char buf[NET_DEV_MAX_SEG_SIZE]; naonet_header_t *nh; @@ -186,7 +185,7 @@ static void *rx_thread(void *null) } while((len = read(fd, buf, sizeof(buf))) > 0) { - nh = (naonet_header_t *) buf; + nh = (naonet_header_t *) ((void *) buf); call_rx_hook_chain((uint8_t) (*(buf + sizeof(*nh))), nh->src_id, (buf + sizeof(*nh) + 1), ntohs(nh->len) - 1, NULL); diff --git a/src/xmalloc.c b/src/xmalloc.c index 59e3401b..424ce77b 100644 --- a/src/xmalloc.c +++ b/src/xmalloc.c @@ -46,7 +46,7 @@ #include "die.h" #include "stacktrace.h" -__hidden void mcheck_abort(enum mcheck_status stat) +static void mcheck_abort(enum mcheck_status stat) { if (stat != MCHECK_OK) panic("mcheck: mem inconsistency detected: %d\n", stat); -- 2.11.4.GIT