mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 08:09:08 +00:00
Declare "cnt" (a number of bytes to read or write) as an "ssize_t", not
as a "long" in dofileread() and dofilewrite(). Discussed with: jhb
This commit is contained in:
parent
75fa96cc9b
commit
e5e6a46460
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141664
@ -162,7 +162,8 @@ dofileread(td, fp, fd, buf, nbyte, offset, flags)
|
||||
{
|
||||
struct uio auio;
|
||||
struct iovec aiov;
|
||||
long cnt, error = 0;
|
||||
ssize_t cnt;
|
||||
long error = 0;
|
||||
#ifdef KTRACE
|
||||
struct uio *ktruio = NULL;
|
||||
#endif
|
||||
@ -350,7 +351,8 @@ dofilewrite(td, fp, fd, buf, nbyte, offset, flags)
|
||||
{
|
||||
struct uio auio;
|
||||
struct iovec aiov;
|
||||
long cnt, error = 0;
|
||||
ssize_t cnt;
|
||||
long error = 0;
|
||||
#ifdef KTRACE
|
||||
struct uio *ktruio = NULL;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user