]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Compare result with 0 to get an int value.
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:39:38 +0000 (13:39 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:39:38 +0000 (13:39 +0000)
sysdeps/generic/selectbits.h

index e2bdf6049ebd8caebe8c52f69a339019ef1973c6..6343334f5af36f2d467c2cee8e71d553e825ae41 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -22,8 +22,8 @@
 /* This line MUST be split!  Otherwise m4 will not change it.  */
 #define __FD_ZERO(set)  \
   ((void) memset ((__ptr_t) (set), 0, sizeof (fd_set)))
-#define __FD_SET(d, set)       ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d))
-#define __FD_CLR(d, set)       ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d))
-#define __FD_ISSET(d, set)     ((set)->fds_bits[__FDELT(d)] & __FDMASK(d))
+#define __FD_SET(d, set)     ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d))
+#define __FD_CLR(d, set)     ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d))
+#define __FD_ISSET(d, set)   (((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) != 0)
 
 #endif /* selectbits.h */