summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-08-04 09:13:45 (GMT)
committerGuido van Rossum <guido@python.org>1992-08-04 09:13:45 (GMT)
commit4fbf798f866b10ee50cc91a394d19c0d4b2f79ab (patch)
treebeb2665667be9ef78613037f542913a9d0f8a5b8 /Include
parentf16eda5ff86f0b38cc3b0012b6d23b779b9ecfcc (diff)
downloadcpython-4fbf798f866b10ee50cc91a394d19c0d4b2f79ab.zip
cpython-4fbf798f866b10ee50cc91a394d19c0d4b2f79ab.tar.gz
cpython-4fbf798f866b10ee50cc91a394d19c0d4b2f79ab.tar.bz2
* myselect.h: bzero -> memset
* select.c: bzero -> memset; removed global variable
Diffstat (limited to 'Include')
-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 */