diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-06 16:26:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-06 16:26:33 +0000 |
commit | 7166dc5ac6ec3231ed91033904397a97e3312a1e (patch) | |
tree | caf11f9694e5125a451cb61aab14df4c846be10d /lib | |
parent | 31370c7d132c8b451afa407f70dae246965f2f8d (diff) |
Don't enumerate every arch in the #if since all OpenBSD platforms use the same values for malloc_pageshift and malloc_minsize except for sparc
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index b46d9793845..d1d87597918 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -8,7 +8,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: malloc.c,v 1.31 1998/06/28 06:30:34 rahnds Exp $"; +static char rcsid[] = "$OpenBSD: malloc.c,v 1.32 1998/08/06 16:26:32 millert Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -81,13 +81,9 @@ static char rcsid[] = "$OpenBSD: malloc.c,v 1.31 1998/06/28 06:30:34 rahnds Exp # define malloc_minsize 16U #endif /* __FOOCPU__ && __BAROS__ */ -#ifdef __OpenBSD__ -# if defined(__alpha__) || defined(__m68k__) || defined(__mips__) || \ - defined(__i386__) || defined(__m88k__) || defined(__ns32k__) || \ - defined(__vax__) || defined(__powerpc__) -# define malloc_pageshift (PGSHIFT) -# define malloc_minsize 16U -# endif /* __i386__ */ +#if defined(__OpenBSD__) && !defined(__sparc__) +# define malloc_pageshift (PGSHIFT) +# define malloc_minsize 16U #endif /* __OpenBSD__ */ #ifdef _THREAD_SAFE |