From: Vincent Bernat Date: Fri, 21 Jun 2013 07:29:41 +0000 (+0200) Subject: compat: declare `setproctitle()` as a printf function X-Git-Tag: 0.7.4~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0d215766ac0a2ae94ed6c810e2b781670a47403;p=thirdparty%2Flldpd.git compat: declare `setproctitle()` as a printf function --- diff --git a/src/compat/compat.h b/src/compat/compat.h index 8d44eac1..8a72bf57 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -54,7 +54,7 @@ char *fgetln(FILE *, size_t *); #endif #if !HAVE_SETPROCTITLE -void setproctitle(const char *fmt, ...); +void setproctitle(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); #endif #if !HAVE_MALLOC