diff options
Diffstat (limited to 'usr/src/uts/common/syscall/poll.c')
| -rw-r--r-- | usr/src/uts/common/syscall/poll.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/syscall/poll.c b/usr/src/uts/common/syscall/poll.c index 6ffef9e3ec..ae34556f14 100644 --- a/usr/src/uts/common/syscall/poll.c +++ b/usr/src/uts/common/syscall/poll.c @@ -499,12 +499,12 @@ poll_common(pollfd_t *fds, nfds_t nfds, timespec_t *tsp, k_sigset_t *ksetp) /* * Note that pcs_usradr field of an used entry won't be - * NULL because it stores the address of passed-in fds, - * and NULL fds will not be cached (Then it is either + * 0 because it stores the address of passed-in fds, + * and 0 fds will not be cached (Then it is either * the special timeout case when nfds is 0 or it returns * failure directly). */ - if (pcset[cacheindex].pcs_usradr == NULL) { + if (pcset[cacheindex].pcs_usradr == (uintptr_t)NULL) { /* * found an unused entry. Use it to cache * this poll list. @@ -2178,7 +2178,7 @@ pcacheset_cache_list(pollstate_t *ps, pollfd_t *fds, int *fdcntp, int which) pcacheset_remove_list(ps, pollfdp, 0, i, which, 0); kmem_free(newfdlist, ps->ps_nfds * sizeof (pollfd_t)); pcacheset[which].pcs_pollfd = NULL; - pcacheset[which].pcs_usradr = NULL; + pcacheset[which].pcs_usradr = (uintptr_t)NULL; break; } } |
