kernel/qio: make readblist() offset of type ulong as the rest

This commit is contained in:
cinap_lenrek 2016-11-12 17:41:58 +01:00
parent 2127b8c552
commit c86b5ddaa6
2 changed files with 3 additions and 3 deletions

View file

@ -283,7 +283,7 @@ void qnoblock(Queue*, int);
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*);

View file

@ -816,9 +816,9 @@ qremove(Queue *q)
* 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){