shithub: riscv

Download patch

ref: a05d656054e22f216e022a239b90d8fc112396ba
parent: a9bccf9e9b1bd408629edaac277f6b3a3a4ab6fb
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Aug 11 09:10:14 EDT 2021

qsort: ...forgot to include headers in the commit.

--- a/sys/include/libc.h
+++ b/sys/include/libc.h
@@ -424,7 +424,7 @@
 extern	int	postnote(int, int, char *);
 extern	double	pow10(int);
 extern	int	putenv(char*, char*);
-extern	void	qsort(void*, long, long, int (*)(void*, void*));
+extern	void	qsort(void*, usize, usize, int (*)(void*, void*));
 extern	int	setjmp(jmp_buf);
 extern	double	strtod(char*, char**);
 extern	long	strtol(char*, char**, int);
--- a/sys/src/9/port/lib.h
+++ b/sys/src/9/port/lib.h
@@ -158,7 +158,7 @@
 extern	int	dec64(uchar*, int, char*, int);
 extern	int	dec16(uchar*, int, char*, int);
 extern	int	encodefmt(Fmt*);
-extern	void	qsort(void*, long, long, int (*)(void*, void*));
+extern	void	qsort(void*, usize, usize, int (*)(void*, void*));
 
 /*
  * Syscall data structures