diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-06-10 01:41:08 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-06-10 01:41:08 +0000 |
commit | 69d6992183cedaf529b0a58bb5533295806df7fc (patch) | |
tree | ed4c3f1e279bdf396098b56122e8fe183d10f770 /usr.bin/make/lst.lib/lstDestroy.c | |
parent | 2e26084dfa835db1e3793f42d67432d67dceb0bc (diff) |
Clean-up patch: use `void *' instead of old-fashioned ClientData/Address.
Diffstat (limited to 'usr.bin/make/lst.lib/lstDestroy.c')
-rw-r--r-- | usr.bin/make/lst.lib/lstDestroy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/make/lst.lib/lstDestroy.c b/usr.bin/make/lst.lib/lstDestroy.c index 87861d8417b..229621f01af 100644 --- a/usr.bin/make/lst.lib/lstDestroy.c +++ b/usr.bin/make/lst.lib/lstDestroy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lstDestroy.c,v 1.6 2000/06/10 01:32:23 espie Exp $ */ +/* $OpenBSD: lstDestroy.c,v 1.7 2000/06/10 01:41:06 espie Exp $ */ /* $NetBSD: lstDestroy.c,v 1.6 1996/11/06 17:59:37 christos Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)lstDestroy.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lstDestroy.c,v 1.6 2000/06/10 01:32:23 espie Exp $"; +static char rcsid[] = "$OpenBSD: lstDestroy.c,v 1.7 2000/06/10 01:41:06 espie Exp $"; #endif #endif /* not lint */ @@ -88,7 +88,7 @@ Lst_Destroy(l, freeProc) if (list->lastPtr != NULL) list->lastPtr->nextPtr = NULL; else { - free ((Address)l); + free(l); return; } @@ -96,14 +96,14 @@ Lst_Destroy(l, freeProc) for (ln = list->firstPtr; ln != NULL; ln = tln) { tln = ln->nextPtr; (*freeProc) (ln->datum); - free ((Address)ln); + free(ln); } } else { for (ln = list->firstPtr; ln != NULL; ln = tln) { tln = ln->nextPtr; - free ((Address)ln); + free(ln); } } - free ((Address)l); + free(l); } |