shithub: drawterm

Download patch

ref: 9f46d48804714b234079e3ee463d473391d726be
parent: 3b886fcd3ec063d39ad3f8a16cb7eb08576102ec
author: cinap_lenrek <[email protected]>
date: Sat Nov 12 12:42:27 EST 2016

kern: make readblist() offset of type ulong as the rest

--- a/kern/fns.h
+++ b/kern/fns.h
@@ -229,7 +229,7 @@
 void		putswap(Page*);
 ulong		pwait(Waitmsg*);
 Label*	pwaserror(void);
-long		readblist(Block*, uchar *, long, long);
+long		readblist(Block*, uchar*, long, ulong);
 int		qaddlist(Queue*, Block*);
 Block*		qbread(Queue*, int);
 long		qbwrite(Queue*, Block*);
--- a/kern/qio.c
+++ b/kern/qio.c
@@ -815,9 +815,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){