summaryrefslogtreecommitdiffstats
path: root/generic/tclAlloc.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-12-28 22:49:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-12-28 22:49:15 (GMT)
commit69384ff89c0dd2eac33ca84ef731449df0622697 (patch)
tree507a2854f7602386b2634c6fe50137fad9b36d07 /generic/tclAlloc.c
parent3a84b4db7ee185ceae7feafb1d90f8225d973815 (diff)
downloadtcl-69384ff89c0dd2eac33ca84ef731449df0622697.zip
tcl-69384ff89c0dd2eac33ca84ef731449df0622697.tar.gz
tcl-69384ff89c0dd2eac33ca84ef731449df0622697.tar.bz2
Fix compilation using -DUSE_TCLALLOC=1
Diffstat (limited to 'generic/tclAlloc.c')
-rw-r--r--generic/tclAlloc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c
index c3966c4..74448b4 100644
--- a/generic/tclAlloc.c
+++ b/generic/tclAlloc.c
@@ -249,9 +249,9 @@ TclFinalizeAllocSubsystem(void)
*----------------------------------------------------------------------
*/
-char *
+void *
TclpAlloc(
- unsigned int numBytes) /* Number of bytes to allocate. */
+ size_t numBytes) /* Number of bytes to allocate. */
{
register union overhead *overPtr;
register size_t bucket;
@@ -446,7 +446,7 @@ MoreCore(
void
TclpFree(
- char *oldPtr) /* Pointer to memory to free. */
+ void *oldPtr) /* Pointer to memory to free. */
{
register size_t size;
register union overhead *overPtr;
@@ -509,10 +509,10 @@ TclpFree(
*----------------------------------------------------------------------
*/
-char *
+void *
TclpRealloc(
- char *oldPtr, /* Pointer to alloced block. */
- unsigned int numBytes) /* New size of memory. */
+ void *oldPtr, /* Pointer to alloced block. */
+ size_t numBytes) /* New size of memory. */
{
int i;
union overhead *overPtr;