Remove the "int *" typecast for the aresid argument to vn_rdwr()

and change the type of the argument from size_t to int. This
should avoid issues on 64bit architectures.

Suggested by:	kib
Approved by:	kib (mentor)
This commit is contained in:
Rick Macklem 2009-06-16 13:52:21 +00:00
parent 5caf16048e
commit 47b7dc9933
2 changed files with 2 additions and 2 deletions

View File

@ -628,7 +628,7 @@ int nfsmsleep(void *, void *, int, const char *, struct timespec *);
* Define whatever it takes to do a vn_rdwr().
*/
#define NFSD_RDWR(r, v, b, l, o, s, i, c, a, p) \
vn_rdwr((r), (v), (b), (l), (o), (s), (i), (c), NULL, (int *)(a), (p))
vn_rdwr((r), (v), (b), (l), (o), (s), (i), (c), NULL, (a), (p))
/*
* Macros for handling memory for different BSDen.

View File

@ -3824,7 +3824,7 @@ nfsrv_setupstable(NFSPROC_T *p)
struct nfst_rec *tsp;
int error, i, tryagain;
off_t off = 0;
size_t aresid, len;
int aresid, len;
struct timeval curtime;
/*