fortify-headers

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

commit 6f0d1a1b6f4b449bb0b59545f2b66d61a1c1b4f3
parent 6156f7de8beff23762b207c02e5e96ac75b51a5c
Author: sin <sin@2f30.org>
Date:   Fri, 30 Jan 2015 16:40:01 +0000

Use consistent naming convention

Diffstat:
Minclude/sys/select.h | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/sys/select.h b/include/sys/select.h @@ -10,9 +10,9 @@ static inline __attribute__ ((always_inline)) int __fortify_FD_CLR(int fd, fd_set *set) { - size_t n = __builtin_object_size(set, 0); + size_t bos = __builtin_object_size(set, 0); - if (fd < 0 || fd >= FD_SETSIZE || n < sizeof(fd_set)) + if (fd < 0 || fd >= FD_SETSIZE || bos < sizeof(fd_set)) __builtin_trap(); return FD_CLR(fd, set); } @@ -21,9 +21,9 @@ static inline __attribute__ ((always_inline)) int __fortify_FD_SET(int fd, fd_set *set) { - size_t n = __builtin_object_size(set, 0); + size_t bos = __builtin_object_size(set, 0); - if (fd < 0 || fd >= FD_SETSIZE || n < sizeof(fd_set)) + if (fd < 0 || fd >= FD_SETSIZE || bos < sizeof(fd_set)) __builtin_trap(); return FD_SET(fd, set); }