Changeset 322
- Timestamp:
- 16/08/2007 13:14:11 (1 year ago)
- Files:
-
- packages/main/udsrelay/tags/mercury/udsrelay.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
packages/main/udsrelay/tags/mercury/udsrelay.c
r314 r322 499 499 500 500 fd_set fds; 501 int i, m fd, max_fd, what, which;501 int i, max_fd, what, which; 502 502 503 503 FD_ZERO(&fds); … … 506 506 FD_SET(s[2], &fds); 507 507 508 mfd = (s[0] > s[1]) ? s[0] : s[1]; 509 max_fd = (mfd > s[2]) ? mfd : s[2]; 508 max_fd = MAX(MAX(s[0], s[1]), s[2]); 510 509 511 510 if ((i = select(max_fd + 1, &fds, NULL, NULL, NULL)) <= 0) {
