summaryrefslogtreecommitdiffstats
path: root/Include/myselect.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/myselect.h')
-rw-r--r--Include/myselect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/myselect.h b/Include/myselect.h
index fa8ade9..54884ad 100644
--- a/Include/myselect.h
+++ b/Include/myselect.h
@@ -75,6 +75,6 @@ typedef struct fd_set {
#define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
#define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
-#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p)))
+#define FD_ZERO(p) memset((char *)(p), '\0', sizeof(*(p)))
#endif /* FD_SET */