diff options
Diffstat (limited to 'src/regress/lib/libc/malloc/malloc_general/malloc_general.c')
-rw-r--r-- | src/regress/lib/libc/malloc/malloc_general/malloc_general.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/regress/lib/libc/malloc/malloc_general/malloc_general.c b/src/regress/lib/libc/malloc/malloc_general/malloc_general.c index 8abc5210ca..7dbaf5d8aa 100644 --- a/src/regress/lib/libc/malloc/malloc_general/malloc_general.c +++ b/src/regress/lib/libc/malloc/malloc_general/malloc_general.c | |||
@@ -33,8 +33,6 @@ size(void) | |||
33 | 33 | ||
34 | struct { void *p; size_t sz; } a[N]; | 34 | struct { void *p; size_t sz; } a[N]; |
35 | 35 | ||
36 | extern char *malloc_options; | ||
37 | |||
38 | void | 36 | void |
39 | fill(u_char *p, size_t sz) | 37 | fill(u_char *p, size_t sz) |
40 | { | 38 | { |
@@ -60,15 +58,6 @@ main(int argc, char *argv[]) | |||
60 | int count, p, r, i; | 58 | int count, p, r, i; |
61 | void * q; | 59 | void * q; |
62 | size_t sz; | 60 | size_t sz; |
63 | char mo[20]; | ||
64 | |||
65 | if (argc == 1) | ||
66 | errx(1, "usage: malloc_options"); | ||
67 | |||
68 | /* first reset flags that might be set by env or sysctl */ | ||
69 | strlcpy(mo, "cfgju", sizeof(mo)); | ||
70 | strlcat(mo, argv[1], sizeof(mo)); | ||
71 | malloc_options = mo; | ||
72 | 61 | ||
73 | for (count = 0; count < 800000; count++) { | 62 | for (count = 0; count < 800000; count++) { |
74 | if (count % 10000 == 0) { | 63 | if (count % 10000 == 0) { |