summaryrefslogtreecommitdiff
path: root/devel/bmake/files/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/bmake/files/buf.c')
-rw-r--r--devel/bmake/files/buf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/bmake/files/buf.c b/devel/bmake/files/buf.c
index 91d810426b3..4fc918220ef 100644
--- a/devel/bmake/files/buf.c
+++ b/devel/bmake/files/buf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: buf.c,v 1.1.1.2 2008/03/09 19:39:32 joerg Exp $ */
+/* $NetBSD: buf.c,v 1.1.1.3 2008/11/11 14:28:22 joerg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: buf.c,v 1.1.1.2 2008/03/09 19:39:32 joerg Exp $";
+static char rcsid[] = "$NetBSD: buf.c,v 1.1.1.3 2008/11/11 14:28:22 joerg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)buf.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: buf.c,v 1.1.1.2 2008/03/09 19:39:32 joerg Exp $");
+__RCSID("$NetBSD: buf.c,v 1.1.1.3 2008/11/11 14:28:22 joerg Exp $");
#endif
#endif /* not lint */
#endif
@@ -105,7 +105,7 @@ __RCSID("$NetBSD: buf.c,v 1.1.1.2 2008/03/09 19:39:32 joerg Exp $");
#define BufExpand(bp,nb) \
while (bp->left < (nb)+1) {\
int newSize = (bp)->size * 2; \
- Byte *newBuf = (Byte *)erealloc((bp)->buffer, newSize); \
+ Byte *newBuf = (Byte *)bmake_realloc((bp)->buffer, newSize); \
\
(bp)->inPtr = newBuf + ((bp)->inPtr - (bp)->buffer); \
(bp)->outPtr = newBuf + ((bp)->outPtr - (bp)->buffer);\
@@ -267,13 +267,13 @@ Buf_Init(int size)
{
Buffer bp; /* New Buffer */
- bp = emalloc(sizeof(*bp));
+ bp = bmake_malloc(sizeof(*bp));
if (size <= 0) {
size = BUF_DEF_SIZE;
}
bp->left = bp->size = size;
- bp->buffer = emalloc(size);
+ bp->buffer = bmake_malloc(size);
bp->inPtr = bp->outPtr = bp->buffer;
*bp->inPtr = 0;