From 7c006408372213194fce572e390d8f474db9cebc Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 25 May 2011 21:00:20 +0100 Subject: [PATCH 1/1] cleanup: fix up the type of string buffers vsnprintf expects a char*, and the format string passed to ->log does too, so make buffers be char[]. Signed-off-by: Ian Jackson Signed-off-by: Richard Kettlewell --- site.c | 2 +- tun.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site.c b/site.c index 73b48ec..e542b7d 100644 --- a/site.c +++ b/site.c @@ -197,7 +197,7 @@ struct site { static void slog(struct site *st, uint32_t event, cstring_t msg, ...) { va_list ap; - uint8_t buf[240]; + char buf[240]; uint32_t class; va_start(ap,msg); diff --git a/tun.c b/tun.c index cfd5a57..04ac08b 100644 --- a/tun.c +++ b/tun.c @@ -234,7 +234,7 @@ static void tun_phase_hook(void *sst, uint32_t newphase) { struct tun *st=sst; string_t hostaddr,secnetaddr; - uint8_t mtu[6]; + char mtu[6]; struct netlink_client *r; if (st->tun_flavour==TUN_FLAVOUR_BSD) { -- 2.30.2