From: Elia Pinto Date: Thu, 11 Feb 2016 12:38:50 GMT Subject: [PATCH 13/22] http-backend.c: use the FORMATPRINTF macro to declare the gcc function attribute 'format printf' Message-ID: <1455194339-859-14-git-send-email-gitter.spiros@gmail.com> In-Reply-To: <1455194339-859-1-git-send-email-gitter.spiros@gmail.com> Use the new FORMATPRINTF macro (in git-compat-util.h) to declare the gcc function attribute 'format printf' Signed-off-by: Elia Pinto --- http-backend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http-backend.c b/http-backend.c index 8870a26..c05e99f 100644 --- a/http-backend.c +++ b/http-backend.c @@ -58,7 +58,7 @@ static const char *get_parameter(const char *name) return i ? i->util : NULL; } -__attribute__((format (printf, 2, 3))) +FORMATPRINTF(2,3) static void format_write(int fd, const char *fmt, ...) { static char buffer[1024]; @@ -116,7 +116,7 @@ static void end_headers(void) write_or_die(1, "\r\n", 2); } -__attribute__((format (printf, 1, 2))) +FORMATPRINTF(1,2) static NORETURN void not_found(const char *err, ...) { va_list params; @@ -132,7 +132,7 @@ static NORETURN void not_found(const char *err, ...) exit(0); } -__attribute__((format (printf, 1, 2))) +FORMATPRINTF(1,2) static NORETURN void forbidden(const char *err, ...) { va_list params; -- 2.5.0