diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-10 23:10:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-10 23:10:09 +0000 |
commit | 9849b95b62baf47b0874dde016fa181099f0e83a (patch) | |
tree | cbfb1c4c6bef6edbe89acc66826317268191e9d4 /lib/libpthread/uthread | |
parent | f301ba466dfb185b024d95455d2755fff9a5b775 (diff) |
Add an nfds_t type as per POSIX and also add pollfd_t like Solaris has.
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r-- | lib/libpthread/uthread/uthread_poll.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_poll.c b/lib/libpthread/uthread/uthread_poll.c index cb6915fbd36..239b3f62da6 100644 --- a/lib/libpthread/uthread/uthread_poll.c +++ b/lib/libpthread/uthread/uthread_poll.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_poll.c,v 1.7 2002/01/10 00:38:39 fgsch Exp $ */ +/* $OpenBSD: uthread_poll.c,v 1.8 2003/12/10 23:10:08 millert Exp $ */ /* * Copyright (c) 1999 Daniel Eischen <eischen@vigrid.com> * All rights reserved. @@ -45,11 +45,11 @@ int -poll(struct pollfd fds[], int nfds, int timeout) +poll(struct pollfd fds[], nfds_t nfds, int timeout) { struct pthread *curthread = _get_curthread(); struct timespec ts; - int numfds = nfds; + nfds_t numfds = nfds; int i, ret = 0; struct pthread_poll_data data; |