From 002c6f8d5fb096d44c8ff168863e4173a683430c Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 8 Jun 2016 22:32:05 +0200 Subject: [PATCH] fixed compiler warning in strf() --- include/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utils.h b/include/utils.h index ec4d149dc..a2bc29521 100644 --- a/include/utils.h +++ b/include/utils.h @@ -99,7 +99,7 @@ char * vstrcatf(char **dest, const char *fmt, va_list va) __attribute__ ((format(printf, 2, 0))); /** Format string like strcatf() just starting with empty string */ -#define strf(fmt, ...) strcatf(&(void *) { NULL }, fmt, ##__VA_ARGS__) +#define strf(fmt, ...) strcatf(&(char *) { NULL }, fmt, ##__VA_ARGS__) /** Format a struct timespec date similar to strftime() */ int strftimespec(char *s, size_t max, const char *format, struct timespec *ts)