From 2ff1fdfe40393dfd8b03182fce90cc0280825c0a Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 8 Mar 2019 22:05:49 +0100 Subject: [PATCH] Make buffers unsigned. What was I thinking? --- interface.h | 2 +- neighbour.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interface.h b/interface.h index 24c1ec8..2b70a28 100644 --- a/interface.h +++ b/interface.h @@ -84,7 +84,7 @@ struct interface_conf { struct buffered { struct sockaddr_in6 sin6; - char *buf; + unsigned char *buf; int len; int size; int flush_interval; diff --git a/neighbour.c b/neighbour.c index 260576b..4e9bc4e 100644 --- a/neighbour.c +++ b/neighbour.c @@ -77,7 +77,7 @@ find_neighbour(const unsigned char *address, struct interface *ifp) { struct neighbour *neigh; const struct timeval zero = {0, 0}; - char *buf; + unsigned char *buf; neigh = find_neighbour_nocreate(address, ifp); if(neigh) -- 2.25.1