Const poison.

Partially submitted by:	wollman
This commit is contained in:
Poul-Henning Kamp 2002-05-30 21:59:16 +00:00
parent c706ddb0fc
commit ff84d98ac2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97639
2 changed files with 6 additions and 4 deletions

View file

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

View file

@ -286,7 +286,7 @@ static void ifree(void *ptr);
static void *irealloc(void *ptr, size_t size);
static void
wrtmessage(char *p1, char *p2, char *p3, char *p4)
wrtmessage(const char *p1, const char *p2, const char *p3, const char *p4)
{
_write(STDERR_FILENO, p1, strlen(p1));
@ -295,7 +295,8 @@ wrtmessage(char *p1, char *p2, char *p3, char *p4)
_write(STDERR_FILENO, p4, strlen(p4));
}
void (*_malloc_message)(char *p1, char *p2, char *p3, char *p4) = wrtmessage;
void (*_malloc_message)(const char *p1, const char *p2, const char *p3,
const char *p4) = wrtmessage;
static void
wrterror(char *p)
@ -401,7 +402,8 @@ extend_pgdir(u_long index)
static void
malloc_init ()
{
char *p, b[64];
const char *p;
char b[64];
int i, j;
int errnosave;