fortify-headers

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

commit c18ebb039973edee1318df71bf40a6d90013b5b0
parent 1e306fd64276aaa68eae4ffa26b68cd84092c37e
Author: sin <sin@2f30.org>
Date:   Thu Jan 29 11:10:04 +0000

Style fix

Diffstat:
include/stdio.h | 3++-
include/strings.h | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/stdio.h b/include/stdio.h @@ -6,7 +6,8 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 static inline __attribute__ ((always_inline)) -char *__fortify_fgets(char *s, int n, FILE *fp) +char * +__fortify_fgets(char *s, int n, FILE *fp) { size_t bos = __builtin_object_size(s, 0); diff --git a/include/strings.h b/include/strings.h @@ -10,7 +10,8 @@ || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE+0 < 700) static inline __attribute__ ((always_inline)) -void __fortify_bcopy(const void *__restrict src, void *__restrict dest, size_t n) +void +__fortify_bcopy(const void *__restrict src, void *__restrict dest, size_t n) { size_t bos = __builtin_object_size(dest, 0);