diff options
author | emaste <emaste@FreeBSD.org> | 2014-04-28 13:42:41 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-04-28 13:42:41 +0000 |
commit | 12ae7f74a071f0439763986026525094a7032dfd (patch) | |
tree | c86f2a3fa93323c4ef617d825754dafc78ca1018 | |
parent | 764830753767f22850b41620e71c06c0def1c6ee (diff) | |
download | FreeBSD-src-12ae7f74a071f0439763986026525094a7032dfd.zip FreeBSD-src-12ae7f74a071f0439763986026525094a7032dfd.tar.gz |
Drop explicit unsigned from FD_SETSIZE constant
FD_SETSIZE is often used as an argument to select or compared with an
integer file descriptor. Rather than force 3rd party software to add
explicit casts, just make it a plain (int) constant as on other
operating systems.
Previous discussion:
http://lists.freebsd.org/pipermail/freebsd-standards/2012-July/002410.html
-rw-r--r-- | sys/sys/select.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/select.h b/sys/sys/select.h index 511895b..8a899ac 100644 --- a/sys/sys/select.h +++ b/sys/sys/select.h @@ -56,7 +56,7 @@ typedef __sigset_t sigset_t; * be enough for most uses. */ #ifndef FD_SETSIZE -#define FD_SETSIZE 1024U +#define FD_SETSIZE 1024 #endif #define _NFDBITS (sizeof(__fd_mask) * 8) /* bits per mask */ |