shithub: riscv

Download patch

ref: d19144155e3825507cc01901a83d99bd64a8b0aa
parent: bdc2b7556896a069f71dcafb9d4ba4e94872bcfe
author: cinap_lenrek <[email protected]>
date: Sun Dec 20 23:49:29 EST 2015

kernel: missing changes for ibrk() prototype

--- a/sys/src/9/port/portfns.h
+++ b/sys/src/9/port/portfns.h
@@ -129,7 +129,7 @@
 void		hzsched(void);
 Block*		iallocb(int);
 void		iallocsummary(void);
-long		ibrk(uintptr, int);
+uintptr		ibrk(uintptr, int);
 void		ilock(Lock*);
 void		interrupted(void);
 void		iunlock(Lock*);
--- a/sys/src/9/port/sysproc.c
+++ b/sys/src/9/port/sysproc.c
@@ -775,7 +775,7 @@
 		case SG_FIXED:
 			error(Ebadarg);
 		default:
-			return (uintptr)ibrk(va_arg(list, uintptr), i);
+			return ibrk(va_arg(list, uintptr), i);
 		}
 	}
 	error(Ebadarg);
@@ -886,7 +886,7 @@
 uintptr
 sysbrk_(va_list list)
 {
-	return (uintptr)ibrk(va_arg(list, uintptr), BSEG);
+	return ibrk(va_arg(list, uintptr), BSEG);
 }
 
 uintptr