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:09 +0100
commit671e1e2d1599aa8c5f1010b3fe75c151c56a7403 (patch)
tree906ba5d55d6993f59d7bb1def63d494bafd38728 /list.c
parenta076248389c82276e079756bee26c011b03f70f2 (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;