summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillert <>1998-08-06 16:26:32 +0000
committermillert <>1998-08-06 16:26:32 +0000
commitecc79d719061ba72b6b8ed3b970f87bd0d75f431 (patch)
treed85f8ec42b712a6293db1d5b2707a34026df6a8e
parenta924f445760f6651d20835536c6ee6cb432ccc82 (diff)
downloadopenbsd-ecc79d719061ba72b6b8ed3b970f87bd0d75f431.tar.gz
openbsd-ecc79d719061ba72b6b8ed3b970f87bd0d75f431.tar.bz2
openbsd-ecc79d719061ba72b6b8ed3b970f87bd0d75f431.zip
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
-rw-r--r--src/lib/libc/stdlib/malloc.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c
index b46d979384..d1d8759791 100644
--- a/src/lib/libc/stdlib/malloc.c
+++ b/src/lib/libc/stdlib/malloc.c
@@ -8,7 +8,7 @@
8 */ 8 */
9 9
10#if defined(LIBC_SCCS) && !defined(lint) 10#if defined(LIBC_SCCS) && !defined(lint)
11static char rcsid[] = "$OpenBSD: malloc.c,v 1.31 1998/06/28 06:30:34 rahnds Exp $"; 11static char rcsid[] = "$OpenBSD: malloc.c,v 1.32 1998/08/06 16:26:32 millert Exp $";
12#endif /* LIBC_SCCS and not lint */ 12#endif /* LIBC_SCCS and not lint */
13 13
14/* 14/*
@@ -81,13 +81,9 @@ static char rcsid[] = "$OpenBSD: malloc.c,v 1.31 1998/06/28 06:30:34 rahnds Exp
81# define malloc_minsize 16U 81# define malloc_minsize 16U
82#endif /* __FOOCPU__ && __BAROS__ */ 82#endif /* __FOOCPU__ && __BAROS__ */
83 83
84#ifdef __OpenBSD__ 84#if defined(__OpenBSD__) && !defined(__sparc__)
85# if defined(__alpha__) || defined(__m68k__) || defined(__mips__) || \ 85# define malloc_pageshift (PGSHIFT)
86 defined(__i386__) || defined(__m88k__) || defined(__ns32k__) || \ 86# define malloc_minsize 16U
87 defined(__vax__) || defined(__powerpc__)
88# define malloc_pageshift (PGSHIFT)
89# define malloc_minsize 16U
90# endif /* __i386__ */
91#endif /* __OpenBSD__ */ 87#endif /* __OpenBSD__ */
92 88
93#ifdef _THREAD_SAFE 89#ifdef _THREAD_SAFE