Changeset 2 for pjproject/main/pjlib/src/pj/sock_select.c
- Timestamp:
- Nov 1, 2005 4:42:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjlib/src/pj/sock_select.c
r1 r2 21 21 #include <pj/errno.h> 22 22 23 #if defined(PJ_HAS_STRING_H) && PJ_HAS_STRING_H!=0 24 # include <string.h> 25 #endif 23 26 24 27 #ifdef _MSC_VER … … 26 29 #endif 27 30 28 #define PART_FDSET(p_fdsetp) ((fd_set*)&p_fdsetp->data[1]) 29 #define PART_COUNT(p_fdsetp) (p_fdsetp->data[0]) 31 #define PART_FDSET(ps) ((fd_set*)&ps->data[1]) 32 #define PART_FDSET_OR_NULL(ps) (ps ? PART_FDSET(ps) : NULL) 33 #define PART_COUNT(ps) (ps->data[0]) 30 34 31 35 PJ_DEF(void) PJ_FD_ZERO(pj_fd_set_t *fdsetp) … … 96 100 } 97 101 98 return select(n, PART_FDSET (readfds), PART_FDSET(writefds),99 PART_FDSET (exceptfds), p_os_timeout);102 return select(n, PART_FDSET_OR_NULL(readfds), PART_FDSET_OR_NULL(writefds), 103 PART_FDSET_OR_NULL(exceptfds), p_os_timeout); 100 104 } 101 105
Note: See TracChangeset
for help on using the changeset viewer.