From 671e1e2d1599aa8c5f1010b3fe75c151c56a7403 Mon Sep 17 00:00:00 2001 From: Toby Goodwin Date: Mon, 7 Jul 1997 00:00:01 +0100 Subject: beta: rc-1.5b2 --- tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tree.c') diff --git a/tree.c b/tree.c index 6ce1ee8..aaea645 100644 --- a/tree.c +++ b/tree.c @@ -65,7 +65,7 @@ extern Node *mk(int /*nodetype*/ t,...) { /* copy a tree to malloc space. Used when storing the definition of a function */ -extern Node *treecpy(Node *s, void *(*alloc)(SIZE_T)) { +extern Node *treecpy(Node *s, void *(*alloc)(size_t)) { Node *n; if (s == NULL) return NULL; @@ -83,7 +83,7 @@ extern Node *treecpy(Node *s, void *(*alloc)(SIZE_T)) { n = (*alloc)(offsetof(Node, u[2])); n->u[0].s = strcpy((char *) (*alloc)(strlen(s->u[0].s) + 1), s->u[0].s); if (s->u[1].s != NULL) { - SIZE_T i = strlen(s->u[0].s); + size_t i = strlen(s->u[0].s); n->u[1].s = (*alloc)(i); memcpy(n->u[1].s, s->u[1].s, i); } else -- cgit v1.2.3