From e1bd49a1e1823eab71c293efd1bd0c9b83c350c9 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Sat, 7 Apr 2007 12:52:27 +0000 Subject: 20070407-1350 more updates from plan 9 pc kernel, and a few unreachable fixes(!) --- os/port/lib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'os/port/lib.h') diff --git a/os/port/lib.h b/os/port/lib.h index c9414b5a..e50fd8cb 100644 --- a/os/port/lib.h +++ b/os/port/lib.h @@ -2,9 +2,9 @@ /* * functions (possibly) linked in, complete, from libc. */ -#define nelem(n) (sizeof(n)/sizeof(n[0])) +#define nelem(x) (sizeof(x)/sizeof((x)[0])) #define offsetof(s, m) (ulong)(&(((s*)0)->m)) -#define assert(x) if(x){}else _assert("x") +#define assert(x) if(x){}else _assert("x") /* * mem routines @@ -123,6 +123,7 @@ extern char end[]; extern int getfields(char*, char**, int, int, char*); extern int tokenize(char*, char**, int); extern int dec64(uchar*, int, char*, int); +extern void qsort(void*, long, long, int (*)(void*, void*)); extern int toupper(int); extern char* netmkaddr(char*, char*, char*); -- cgit v1.2.3