diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-12-07 09:05:53 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-12-07 09:05:53 -0500 |
commit | d3ad40dee6b4c80322ff3ca0b0b4c90a2f0efd61 (patch) | |
tree | 244f20657adb42530ea33d805437f791a701adc3 /lib/malloc/malloc.c | |
parent | 28157acd2d622d79329a0cfd0c8fd3a5d7b3baeb (diff) | |
download | bash-d3ad40dee6b4c80322ff3ca0b0b4c90a2f0efd61.tar.gz |
commit bash-20070329 snapshot
Diffstat (limited to 'lib/malloc/malloc.c')
-rw-r--r-- | lib/malloc/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/malloc/malloc.c b/lib/malloc/malloc.c index f9a08da1..75d911fd 100644 --- a/lib/malloc/malloc.c +++ b/lib/malloc/malloc.c @@ -231,7 +231,7 @@ static int maxbuck; /* highest bucket receiving allocation request. */ static char *memtop; /* top of heap */ -static unsigned long binsizes[NBUCKETS] = { +static const unsigned long binsizes[NBUCKETS] = { 8UL, 16UL, 32UL, 64UL, 128UL, 256UL, 512UL, 1024UL, 2048UL, 4096UL, 8192UL, 16384UL, 32768UL, 65536UL, 131072UL, 262144UL, 524288UL, 1048576UL, 2097152UL, 4194304UL, 8388608UL, 16777216UL, 33554432UL, @@ -312,7 +312,7 @@ xbotch (mem, e, s, file, line) int line; { fprintf (stderr, _("\r\nmalloc: %s:%d: assertion botched\r\n"), - file ? file : "unknown", line); + file ? file : _("unknown"), line); #ifdef MALLOC_REGISTER if (mem != NULL && malloc_register) mregister_describe_mem (mem, stderr); |