From d9f86006547a3ca6e398b789ba9051c95266c4b9 Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Sun, 14 Dec 2014 00:04:32 +0100 Subject: [PATCH] mx_util: fix mx_asprintf_forever prototype --- mx_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mx_util.h b/mx_util.h index 3c0b656..fc3434c 100644 --- a/mx_util.h +++ b/mx_util.h @@ -24,7 +24,7 @@ int mx_strtoi64(char *str, int64_t *to); char *mx_strdup_forever(char *str); int mx_vasprintf_forever(char **strp, const char *fmt, va_list ap); -int mx_asprintf_forever(char **strp, const char *fmt, ...); +int mx_asprintf_forever(char **strp, const char *fmt, ...) __attribute__ ((format(printf, 2, 3))); char *mx_dirname(char *path); char *mx_dirname_forever(char *path);