summaryrefslogtreecommitdiff
path: root/list.c
diff options
context:
space:
mode:
authorToby Goodwin <tgoodwin@cygnus.co.uk>1997-07-07 00:00:01 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:59 +0100
commitb87bfedf65c289bf0ee5338c9e10492b70b1e8e0 (patch)
tree906ba5d55d6993f59d7bb1def63d494bafd38728 /list.c
parent5556dde4d3ad4e34267320b1411fc090b18a24b0 (diff)
beta: rc-1.5b2
Diffstat (limited to 'list.c')
-rw-r--r--list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/list.c b/list.c
index f795485..fba6f6a 100644
--- a/list.c
+++ b/list.c
@@ -22,7 +22,7 @@ extern void listfree(List *p) {
/* Copy list into malloc space (for storing a variable) */
-extern List *listcpy(List *s, void *(*alloc)(SIZE_T)) {
+extern List *listcpy(List *s, void *(*alloc)(size_t)) {
List *top, *r;
for (top = r = NULL; s != NULL; s = s->n) {
if (top == NULL)
@@ -40,8 +40,8 @@ extern List *listcpy(List *s, void *(*alloc)(SIZE_T)) {
/* Length of list */
-extern SIZE_T listlen(List *s) {
- SIZE_T size;
+extern size_t listlen(List *s) {
+ size_t size;
for (size = 0; s != NULL; s = s->n)
size += strlen(s->w) + 1;
return size;