diff options
author | des <des@FreeBSD.org> | 2003-03-02 16:54:40 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-03-02 16:54:40 +0000 |
commit | 2756b6c9641bd9899a346582c191310de25cccc5 (patch) | |
tree | 351747321ab136aa733f670c4c2c235b3639bc1e /sys/nfsclient/nfs_nfsiod.c | |
parent | 3780674329cabab230b12923047c8aa84e4f05fc (diff) | |
download | FreeBSD-src-2756b6c9641bd9899a346582c191310de25cccc5.zip FreeBSD-src-2756b6c9641bd9899a346582c191310de25cccc5.tar.gz |
More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).
Diffstat (limited to 'sys/nfsclient/nfs_nfsiod.c')
-rw-r--r-- | sys/nfsclient/nfs_nfsiod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_nfsiod.c b/sys/nfsclient/nfs_nfsiod.c index 8762b16..c244972 100644 --- a/sys/nfsclient/nfs_nfsiod.c +++ b/sys/nfsclient/nfs_nfsiod.c @@ -144,7 +144,7 @@ sysctl_iodmax(SYSCTL_HANDLER_ARGS) iod = nfs_numasync - 1; for (i = 0; i < nfs_numasync - nfs_iodmax; i++) { if (nfs_iodwant[iod]) - wakeup((caddr_t)&nfs_iodwant[iod]); + wakeup(&nfs_iodwant[iod]); iod--; } return (0); @@ -244,7 +244,7 @@ nfssvc_iod(void *instance) * Always keep at least nfs_iodmin kthreads. */ timo = (myiod < nfs_iodmin) ? 0 : nfs_iodmaxidle * hz; - error = tsleep((caddr_t)&nfs_iodwant[myiod], PWAIT | PCATCH, + error = tsleep(&nfs_iodwant[myiod], PWAIT | PCATCH, "nfsidl", timo); } if (error) |