diff options
| author | ad <ad@NetBSD.org> | 2008-06-03 19:22:07 +0000 |
|---|---|---|
| committer | ad <ad@NetBSD.org> | 2008-06-03 19:22:07 +0000 |
| commit | 9795e155ec92bef6fcb2aaf8d508d538a23b4f5c (patch) | |
| tree | 2ddac4c399aae3d782f10f5fe94e0009b77f6bd7 /libexec | |
| parent | 51a52ea260b81334e2f58f9ebffe522f1f544795 (diff) | |
__progname isn't const.
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ld.elf_so/xmalloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.elf_so/xmalloc.c b/libexec/ld.elf_so/xmalloc.c index c6ea75f5899..f01e81cc33b 100644 --- a/libexec/ld.elf_so/xmalloc.c +++ b/libexec/ld.elf_so/xmalloc.c @@ -1,4 +1,4 @@ -/* $NetBSD: xmalloc.c,v 1.7 2007/10/05 22:21:07 ad Exp $ */ +/* $NetBSD: xmalloc.c,v 1.8 2008/06/03 19:22:07 ad Exp $ */ /* * Copyright 1996 John D. Polstra. @@ -77,7 +77,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: xmalloc.c,v 1.7 2007/10/05 22:21:07 ad Exp $"); +__RCSID("$NetBSD: xmalloc.c,v 1.8 2008/06/03 19:22:07 ad Exp $"); #endif /* not lint */ #include <stdlib.h> @@ -343,7 +343,7 @@ irealloc(void *cp, size_t nbytes) if (op->ov_magic != MAGIC) { static const char *err_str = "memory corruption or double free in realloc\n"; - extern const char *__progname; + extern char *__progname; write(STDERR_FILENO, __progname, strlen(__progname)); write(STDERR_FILENO, err_str, strlen(err_str)); abort(); |
