fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit d87f9d94e15307d604fb8d8d7f3c83e046febcf0
parent 1118911981c4ee56b90328c04dda14935b3d5525
Author: sin <sin@2f30.org>
Date:   Tue,  3 Mar 2015 17:10:34 +0000

Remove gcc attribute decoration

Diffstat:
Minclude/stdio.h | 10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/include/stdio.h b/include/stdio.h @@ -42,10 +42,7 @@ __fortify_fwrite(const void *dst, size_t n, size_t nmemb, FILE *fp) return fwrite(dst, n, nmemb, fp); } -static inline -__attribute__ ((always_inline)) -__attribute__ ((__format__ (printf, 2, 0))) -__attribute__ ((__nonnull__ (2))) +static inline __attribute__ ((always_inline)) int __fortify_vsprintf(char *s, const char *fmt, __builtin_va_list ap) { @@ -62,10 +59,7 @@ __fortify_vsprintf(char *s, const char *fmt, __builtin_va_list ap) return r; } -static inline -__attribute__ ((always_inline)) -__attribute__ ((__format__ (printf, 3, 0))) -__attribute__ ((__nonnull__ (3))) +static inline __attribute__ ((always_inline)) int __fortify_vsnprintf(char *s, size_t n, const char *fmt, __builtin_va_list ap) {