Constify _malloc_options.

This commit is contained in:
Poul-Henning Kamp 2002-04-24 16:49:36 +00:00
parent 7ce72dbaec
commit 9908ed2b1e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95377
3 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@ int mbtowc(wchar_t *, const char *, size_t);
size_t wcstombs(char *, const wchar_t *, size_t);
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
extern char *_malloc_options;
extern const char *_malloc_options;
extern void (*_malloc_message)(char *p1, char *p2, char *p3, char *p4);
int putenv(const char *);

View File

@ -56,8 +56,8 @@
.Fn reallocf "void *ptr" "size_t size"
.Ft void
.Fn free "void *ptr"
.Ft char *
.Va _malloc_options
.Ft const char *
.Va _malloc_options;
.Ft void
.Fn \*(lp*_malloc_message\*(rp "char *p1" "char *p2" "char *p3" "char *p4"
.Sh DESCRIPTION

View File

@ -267,7 +267,7 @@ static void *malloc_brk;
static struct pgfree *px;
/* compile-time options */
char *_malloc_options;
const char *_malloc_options;
/* Name of the current public function */
static char *malloc_func;