From 720c4f7414c3c3d980de8e6ddbc0f608d3e9050d Mon Sep 17 00:00:00 2001 From: Trutz Behn Date: Wed, 20 May 2015 22:09:46 +0200 Subject: Fix return-type of fortified FD_CLR and FD_SET POSIX specifies them to have return-type void, not int. --- include/sys/select.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/sys/select.h b/include/sys/select.h index 01d0aa9..0f1e1df 100644 --- a/include/sys/select.h +++ b/include/sys/select.h @@ -25,23 +25,23 @@ extern "C" { #endif static __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) -int __fortify_FD_CLR(int fd, fd_set *set) +void __fortify_FD_CLR(int fd, fd_set *set) { size_t bos = __builtin_object_size(set, 0); if (fd < 0 || fd >= FD_SETSIZE || bos < sizeof(fd_set)) __builtin_trap(); - return FD_CLR(fd, set); + FD_CLR(fd, set); } static __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) -int __fortify_FD_SET(int fd, fd_set *set) +void __fortify_FD_SET(int fd, fd_set *set) { size_t bos = __builtin_object_size(set, 0); if (fd < 0 || fd >= FD_SETSIZE || bos < sizeof(fd_set)) __builtin_trap(); - return FD_SET(fd, set); + FD_SET(fd, set); } #undef FD_CLR -- cgit v1.3