ref: c86b5ddaa6fbc32de8ec75a8edc5ba375e28076b
parent: 2127b8c552390cdaeb848d0992d2923733936d09
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Nov 12 12:41:58 EST 2016
kernel/qio: make readblist() offset of type ulong as the rest
--- a/sys/src/9/port/portfns.h
+++ b/sys/src/9/port/portfns.h
@@ -283,7 +283,7 @@
void randominit(void);
ulong randomread(void*, ulong);
void rdb(void);
-long readblist(Block *, uchar *, long, long);
+long readblist(Block*, uchar*, long, ulong);
int readnum(ulong, char*, ulong, ulong, int);
int readstr(ulong, char*, ulong, char*);
void ready(Proc*);
--- a/sys/src/9/port/qio.c
+++ b/sys/src/9/port/qio.c
@@ -816,9 +816,9 @@
* return number of copied bytes.
*/
long
-readblist(Block *b, uchar *p, long n, long o)
+readblist(Block *b, uchar *p, long n, ulong o)
{
- long m, r;
+ ulong m, r;
r = 0;
while(n > 0 && b != nil){