From: Ian Jackson Date: Wed, 25 May 2011 20:00:20 +0000 (+0100) Subject: cleanup: fix up the type of string buffers X-Git-Tag: v0.2.0~86 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=commitdiff_plain;h=7c006408372213194fce572e390d8f474db9cebc 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 --- 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) {