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:
parent
5caf16048e
commit
47b7dc9933
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user