shithub: 9ferno

Download patch

ref: 11a2743d651e882b254712f550cec9eba984f2db
parent: e16b4d85dd6b1cf14834387b765113114dabeae2
author: 9ferno <gophone2015@gmail.com>
date: Tue Aug 10 18:25:59 EDT 2021

correct the segflush() function signature

--- a/include/interp.h	Tue Aug 10 18:21:12 2021
+++ b/include/interp.h	Tue Aug 10 18:25:59 2021
@@ -507,7 +507,7 @@
 extern	void		rungc(Prog*);
 extern	void		runtime(Module*, Link*, char*, int, void(*)(void*), Type*);
 extern	void		safemem(void*, Type*, void (*)(void*));
-extern	long		segflush(void *, ulong);
+extern	int		segflush(void *, ulong);
 extern	void		isend(void);
 extern	void	setdbreg(uchar*);
 extern	uchar*	setdbloc(uchar*);
--- a/include/kern.h	Tue Aug 10 18:21:12 2021
+++ b/include/kern.h	Tue Aug 10 18:25:59 2021
@@ -567,7 +567,7 @@
 extern	long	segattach(int, char*, void*, ulong);
 extern	int	segbrk(void*, void*);
 extern	int	segdetach(void*);
-extern	long	segflush(void*, ulong);
+extern	int	segflush(void*, ulong);
 extern	int	segfree(void*, ulong);
 extern	int	sleep(long);
 extern	int	stat(char*, uchar*, int);
--- a/os/pc64/fns.h	Tue Aug 10 18:21:12 2021
+++ b/os/pc64/fns.h	Tue Aug 10 18:25:59 2021
@@ -181,7 +181,7 @@
 void	(*screenputs)(char*, int);
 void	setconfenv(void);
 void*	sigsearch(char*, int);
-long	segflush(void*, ulong);
+int	segflush(void*, ulong);
 void	showframe(void*, void*);
 void	syncclock(void);
 uvlong	tscticks(uvlong*);
--- a/os/pc64/mmu.c	Tue Aug 10 18:21:12 2021
+++ b/os/pc64/mmu.c	Tue Aug 10 18:25:59 2021
@@ -197,7 +197,7 @@
 /* nothing to do */
 }
 
-long
+int
 segflush(void*, ulong)
 {
 	return 0;