summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/lst.lib
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2000-06-10 01:41:05 +0000
committerespie <espie@openbsd.org>2000-06-10 01:41:05 +0000
commitaa523a8eb89f660d57227900dfdca5cad911345f (patch)
treea05406efb24c6b88312265f2604ca6f81fd26f64 /usr.bin/make/lst.lib
parentno longer needed (diff)
downloadwireguard-openbsd-aa523a8eb89f660d57227900dfdca5cad911345f.tar.xz
wireguard-openbsd-aa523a8eb89f660d57227900dfdca5cad911345f.zip
Clean-up patch: use `void *' instead of old-fashioned ClientData/Address.
Diffstat (limited to 'usr.bin/make/lst.lib')
-rw-r--r--usr.bin/make/lst.lib/lstAppend.c6
-rw-r--r--usr.bin/make/lst.lib/lstAtEnd.c6
-rw-r--r--usr.bin/make/lst.lib/lstAtFront.c8
-rw-r--r--usr.bin/make/lst.lib/lstConcat.c6
-rw-r--r--usr.bin/make/lst.lib/lstDatum.c6
-rw-r--r--usr.bin/make/lst.lib/lstDeQueue.c8
-rw-r--r--usr.bin/make/lst.lib/lstDestroy.c12
-rw-r--r--usr.bin/make/lst.lib/lstDupl.c6
-rw-r--r--usr.bin/make/lst.lib/lstEnQueue.c6
-rw-r--r--usr.bin/make/lst.lib/lstFindFrom.c6
-rw-r--r--usr.bin/make/lst.lib/lstForEachFrom.c6
-rw-r--r--usr.bin/make/lst.lib/lstInsert.c8
-rw-r--r--usr.bin/make/lst.lib/lstInt.h4
-rw-r--r--usr.bin/make/lst.lib/lstMember.c8
-rw-r--r--usr.bin/make/lst.lib/lstRemove.c6
-rw-r--r--usr.bin/make/lst.lib/lstReplace.c10
16 files changed, 56 insertions, 56 deletions
diff --git a/usr.bin/make/lst.lib/lstAppend.c b/usr.bin/make/lst.lib/lstAppend.c
index 19e57967dfc..fbc4d8daaab 100644
--- a/usr.bin/make/lst.lib/lstAppend.c
+++ b/usr.bin/make/lst.lib/lstAppend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstAppend.c,v 1.7 1999/12/18 21:58:08 espie Exp $ */
+/* $OpenBSD: lstAppend.c,v 1.8 2000/06/10 01:41:06 espie Exp $ */
/* $NetBSD: lstAppend.c,v 1.5 1996/11/06 17:59:31 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstAppend.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstAppend.c,v 1.7 1999/12/18 21:58:08 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstAppend.c,v 1.8 2000/06/10 01:41:06 espie Exp $";
#endif
#endif /* not lint */
@@ -72,7 +72,7 @@ void
Lst_Append(l, ln, d)
Lst l; /* affected list */
LstNode ln; /* node after which to append the datum */
- ClientData d; /* said datum */
+ void *d; /* said datum */
{
register List list;
register ListNode lNode;
diff --git a/usr.bin/make/lst.lib/lstAtEnd.c b/usr.bin/make/lst.lib/lstAtEnd.c
index b23f781ada2..63684eb27b7 100644
--- a/usr.bin/make/lst.lib/lstAtEnd.c
+++ b/usr.bin/make/lst.lib/lstAtEnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstAtEnd.c,v 1.5 1999/12/18 21:58:08 espie Exp $ */
+/* $OpenBSD: lstAtEnd.c,v 1.6 2000/06/10 01:41:06 espie Exp $ */
/* $NetBSD: lstAtEnd.c,v 1.5 1996/11/06 17:59:32 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstAtEnd.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstAtEnd.c,v 1.5 1999/12/18 21:58:08 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstAtEnd.c,v 1.6 2000/06/10 01:41:06 espie Exp $";
#endif
#endif /* not lint */
@@ -65,7 +65,7 @@ static char rcsid[] = "$OpenBSD: lstAtEnd.c,v 1.5 1999/12/18 21:58:08 espie Exp
void
Lst_AtEnd(l, d)
Lst l; /* List to which to add the datum */
- ClientData d; /* Datum to add */
+ void *d; /* Datum to add */
{
Lst_Append(l, Lst_Last(l), d);
}
diff --git a/usr.bin/make/lst.lib/lstAtFront.c b/usr.bin/make/lst.lib/lstAtFront.c
index 16fb97150e3..51b3860bcf6 100644
--- a/usr.bin/make/lst.lib/lstAtFront.c
+++ b/usr.bin/make/lst.lib/lstAtFront.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstAtFront.c,v 1.5 1999/12/18 21:58:08 espie Exp $ */
+/* $OpenBSD: lstAtFront.c,v 1.6 2000/06/10 01:41:06 espie Exp $ */
/* $NetBSD: lstAtFront.c,v 1.5 1996/11/06 17:59:33 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstAtFront.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstAtFront.c,v 1.5 1999/12/18 21:58:08 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstAtFront.c,v 1.6 2000/06/10 01:41:06 espie Exp $";
#endif
#endif /* not lint */
@@ -64,9 +64,9 @@ static char rcsid[] = "$OpenBSD: lstAtFront.c,v 1.5 1999/12/18 21:58:08 espie Ex
*-----------------------------------------------------------------------
*/
void
-Lst_AtFront (l, d)
+Lst_AtFront(l, d)
Lst l;
- ClientData d;
+ void *d;
{
Lst_Insert(l, Lst_First(l), d);
}
diff --git a/usr.bin/make/lst.lib/lstConcat.c b/usr.bin/make/lst.lib/lstConcat.c
index 265e0a9c6c0..9eb3847f05d 100644
--- a/usr.bin/make/lst.lib/lstConcat.c
+++ b/usr.bin/make/lst.lib/lstConcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstConcat.c,v 1.7 1999/12/18 21:58:08 espie Exp $ */
+/* $OpenBSD: lstConcat.c,v 1.8 2000/06/10 01:41:06 espie Exp $ */
/* $NetBSD: lstConcat.c,v 1.6 1996/11/06 17:59:34 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstConcat.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstConcat.c,v 1.7 1999/12/18 21:58:08 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstConcat.c,v 1.8 2000/06/10 01:41:06 espie Exp $";
#endif
#endif /* not lint */
@@ -114,7 +114,7 @@ Lst_Concat (l1, l2, flags)
}
list1->lastPtr = list2->lastPtr;
}
- free ((Address)l2);
+ free(l2);
} else if (list2->firstPtr != NULL) {
/*
* We set the nextPtr of the last element of list 2 to be NULL to make
diff --git a/usr.bin/make/lst.lib/lstDatum.c b/usr.bin/make/lst.lib/lstDatum.c
index 139ec86ebb3..5b11cd8eddb 100644
--- a/usr.bin/make/lst.lib/lstDatum.c
+++ b/usr.bin/make/lst.lib/lstDatum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstDatum.c,v 1.6 2000/03/26 16:21:33 espie Exp $ */
+/* $OpenBSD: lstDatum.c,v 1.7 2000/06/10 01:41:06 espie Exp $ */
/* $NetBSD: lstDatum.c,v 1.5 1996/11/06 17:59:35 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstDatum.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstDatum.c,v 1.6 2000/03/26 16:21:33 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstDatum.c,v 1.7 2000/06/10 01:41:06 espie Exp $";
#endif
#endif /* not lint */
@@ -65,7 +65,7 @@ static char rcsid[] = "$OpenBSD: lstDatum.c,v 1.6 2000/03/26 16:21:33 espie Exp
*
*-----------------------------------------------------------------------
*/
-ClientData
+void *
Lst_Datum(ln)
LstNode ln;
{
diff --git a/usr.bin/make/lst.lib/lstDeQueue.c b/usr.bin/make/lst.lib/lstDeQueue.c
index 696360388ad..a0f87b25e2f 100644
--- a/usr.bin/make/lst.lib/lstDeQueue.c
+++ b/usr.bin/make/lst.lib/lstDeQueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstDeQueue.c,v 1.7 2000/03/26 16:21:33 espie Exp $ */
+/* $OpenBSD: lstDeQueue.c,v 1.8 2000/06/10 01:41:06 espie Exp $ */
/* $NetBSD: lstDeQueue.c,v 1.5 1996/11/06 17:59:36 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstDeQueue.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstDeQueue.c,v 1.7 2000/03/26 16:21:33 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstDeQueue.c,v 1.8 2000/06/10 01:41:06 espie Exp $";
#endif
#endif /* not lint */
@@ -66,11 +66,11 @@ static char rcsid[] = "$OpenBSD: lstDeQueue.c,v 1.7 2000/03/26 16:21:33 espie Ex
*
*-----------------------------------------------------------------------
*/
-ClientData
+void *
Lst_DeQueue(l)
Lst l;
{
- ClientData rd;
+ void *rd;
LstNode tln;
tln = Lst_First(l);
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);
}
diff --git a/usr.bin/make/lst.lib/lstDupl.c b/usr.bin/make/lst.lib/lstDupl.c
index 1ae98f2983f..c826050e28d 100644
--- a/usr.bin/make/lst.lib/lstDupl.c
+++ b/usr.bin/make/lst.lib/lstDupl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstDupl.c,v 1.8 2000/06/10 01:32:23 espie Exp $ */
+/* $OpenBSD: lstDupl.c,v 1.9 2000/06/10 01:41:06 espie Exp $ */
/* $NetBSD: lstDupl.c,v 1.6 1996/11/06 17:59:37 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstDupl.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstDupl.c,v 1.8 2000/06/10 01:32:23 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstDupl.c,v 1.9 2000/06/10 01:41:06 espie Exp $";
#endif
#endif /* not lint */
@@ -56,7 +56,7 @@ static char rcsid[] = "$OpenBSD: lstDupl.c,v 1.8 2000/06/10 01:32:23 espie Exp $
/*-
*-----------------------------------------------------------------------
* Lst_Duplicate --
- * Duplicate an entire list. If a function to copy a ClientData is
+ * Duplicate an entire list. If a function to copy a void * is
* given, the individual client elements will be duplicated as well.
*
* Results:
diff --git a/usr.bin/make/lst.lib/lstEnQueue.c b/usr.bin/make/lst.lib/lstEnQueue.c
index 2fa56654e00..6a26bfba7ca 100644
--- a/usr.bin/make/lst.lib/lstEnQueue.c
+++ b/usr.bin/make/lst.lib/lstEnQueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstEnQueue.c,v 1.5 1999/12/18 21:58:08 espie Exp $ */
+/* $OpenBSD: lstEnQueue.c,v 1.6 2000/06/10 01:41:07 espie Exp $ */
/* $NetBSD: lstEnQueue.c,v 1.5 1996/11/06 17:59:38 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstEnQueue.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstEnQueue.c,v 1.5 1999/12/18 21:58:08 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstEnQueue.c,v 1.6 2000/06/10 01:41:07 espie Exp $";
#endif
#endif /* not lint */
@@ -66,7 +66,7 @@ static char rcsid[] = "$OpenBSD: lstEnQueue.c,v 1.5 1999/12/18 21:58:08 espie Ex
void
Lst_EnQueue(l, d)
Lst l;
- ClientData d;
+ void *d;
{
if (LstValid(l) == FALSE)
return;
diff --git a/usr.bin/make/lst.lib/lstFindFrom.c b/usr.bin/make/lst.lib/lstFindFrom.c
index 8ef31a77330..dc416e89340 100644
--- a/usr.bin/make/lst.lib/lstFindFrom.c
+++ b/usr.bin/make/lst.lib/lstFindFrom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstFindFrom.c,v 1.6 1999/12/19 00:04:26 espie Exp $ */
+/* $OpenBSD: lstFindFrom.c,v 1.7 2000/06/10 01:41:07 espie Exp $ */
/* $NetBSD: lstFindFrom.c,v 1.6 1996/11/06 17:59:40 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstFindFrom.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: lstFindFrom.c,v 1.6 1999/12/19 00:04:26 espie Exp $";
+static char *rcsid = "$OpenBSD: lstFindFrom.c,v 1.7 2000/06/10 01:41:07 espie Exp $";
#endif
#endif /* not lint */
@@ -70,7 +70,7 @@ LstNode
Lst_FindFrom(ln, cProc, d)
LstNode ln;
FindProc cProc;
- ClientData d;
+ void *d;
{
ListNode tln;
diff --git a/usr.bin/make/lst.lib/lstForEachFrom.c b/usr.bin/make/lst.lib/lstForEachFrom.c
index 563d6023fee..238e0f7e8a5 100644
--- a/usr.bin/make/lst.lib/lstForEachFrom.c
+++ b/usr.bin/make/lst.lib/lstForEachFrom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstForEachFrom.c,v 1.6 2000/06/10 01:32:23 espie Exp $ */
+/* $OpenBSD: lstForEachFrom.c,v 1.7 2000/06/10 01:41:07 espie Exp $ */
/* $NetBSD: lstForEachFrom.c,v 1.5 1996/11/06 17:59:42 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstForEachFrom.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstForEachFrom.c,v 1.6 2000/06/10 01:32:23 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstForEachFrom.c,v 1.7 2000/06/10 01:41:07 espie Exp $";
#endif
#endif /* not lint */
@@ -67,7 +67,7 @@ void
Lst_ForEachFrom(ln, proc, d)
LstNode ln;
ForEachProc proc;
- ClientData d;
+ void *d;
{
ListNode tln;
diff --git a/usr.bin/make/lst.lib/lstInsert.c b/usr.bin/make/lst.lib/lstInsert.c
index 92d3f0c12ab..e6d1fbf6e9a 100644
--- a/usr.bin/make/lst.lib/lstInsert.c
+++ b/usr.bin/make/lst.lib/lstInsert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstInsert.c,v 1.7 1999/12/18 21:58:08 espie Exp $ */
+/* $OpenBSD: lstInsert.c,v 1.8 2000/06/10 01:41:07 espie Exp $ */
/* $NetBSD: lstInsert.c,v 1.5 1996/11/06 17:59:44 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstInsert.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstInsert.c,v 1.7 1999/12/18 21:58:08 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstInsert.c,v 1.8 2000/06/10 01:41:07 espie Exp $";
#endif
#endif /* not lint */
@@ -65,10 +65,10 @@ static char rcsid[] = "$OpenBSD: lstInsert.c,v 1.7 1999/12/18 21:58:08 espie Exp
*-----------------------------------------------------------------------
*/
void
-Lst_Insert (l, ln, d)
+Lst_Insert(l, ln, d)
Lst l; /* list to manipulate */
LstNode ln; /* node before which to insert d */
- ClientData d; /* datum to be inserted */
+ void *d; /* datum to be inserted */
{
register ListNode nLNode; /* new lnode for d */
register ListNode lNode = (ListNode)ln;
diff --git a/usr.bin/make/lst.lib/lstInt.h b/usr.bin/make/lst.lib/lstInt.h
index d1033808117..be021cbe175 100644
--- a/usr.bin/make/lst.lib/lstInt.h
+++ b/usr.bin/make/lst.lib/lstInt.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstInt.h,v 1.8 1999/12/18 21:53:34 espie Exp $ */
+/* $OpenBSD: lstInt.h,v 1.9 2000/06/10 01:41:07 espie Exp $ */
/* $NetBSD: lstInt.h,v 1.7 1996/11/06 17:59:44 christos Exp $ */
/*
@@ -56,7 +56,7 @@ typedef struct ListNode {
* node may not be deleted until count
* goes to 0 */
flags:8; /* Node status flags */
- ClientData datum; /* datum associated with this element */
+ void *datum; /* datum associated with this element */
} *ListNode;
/*
* Flags required for synchronization
diff --git a/usr.bin/make/lst.lib/lstMember.c b/usr.bin/make/lst.lib/lstMember.c
index 0cbed448fcf..6cbaeed47bc 100644
--- a/usr.bin/make/lst.lib/lstMember.c
+++ b/usr.bin/make/lst.lib/lstMember.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstMember.c,v 1.5 1999/12/18 21:53:34 espie Exp $ */
+/* $OpenBSD: lstMember.c,v 1.6 2000/06/10 01:41:07 espie Exp $ */
/* $NetBSD: lstMember.c,v 1.5 1996/11/06 17:59:48 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstMember.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstMember.c,v 1.5 1999/12/18 21:53:34 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstMember.c,v 1.6 2000/06/10 01:41:07 espie Exp $";
#endif
#endif /* not lint */
@@ -53,9 +53,9 @@ static char rcsid[] = "$OpenBSD: lstMember.c,v 1.5 1999/12/18 21:53:34 espie Exp
#include "lstInt.h"
LstNode
-Lst_Member (l, d)
+Lst_Member(l, d)
Lst l;
- ClientData d;
+ void *d;
{
List list = (List) l;
register ListNode lNode;
diff --git a/usr.bin/make/lst.lib/lstRemove.c b/usr.bin/make/lst.lib/lstRemove.c
index e2a9075cc8f..f875a7adaa5 100644
--- a/usr.bin/make/lst.lib/lstRemove.c
+++ b/usr.bin/make/lst.lib/lstRemove.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstRemove.c,v 1.6 1999/12/18 21:58:08 espie Exp $ */
+/* $OpenBSD: lstRemove.c,v 1.7 2000/06/10 01:41:07 espie Exp $ */
/* $NetBSD: lstRemove.c,v 1.5 1996/11/06 17:59:50 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstRemove.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstRemove.c,v 1.6 1999/12/18 21:58:08 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstRemove.c,v 1.7 2000/06/10 01:41:07 espie Exp $";
#endif
#endif /* not lint */
@@ -128,7 +128,7 @@ Lst_Remove(l, ln)
* necessary and as expected.
*/
if (lNode->useCount == 0) {
- free ((Address)ln);
+ free(ln);
} else {
lNode->flags |= LN_DELETED;
}
diff --git a/usr.bin/make/lst.lib/lstReplace.c b/usr.bin/make/lst.lib/lstReplace.c
index d638c3a7f1d..f7008cbece8 100644
--- a/usr.bin/make/lst.lib/lstReplace.c
+++ b/usr.bin/make/lst.lib/lstReplace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lstReplace.c,v 1.6 1999/12/18 21:58:08 espie Exp $ */
+/* $OpenBSD: lstReplace.c,v 1.7 2000/06/10 01:41:07 espie Exp $ */
/* $NetBSD: lstReplace.c,v 1.5 1996/11/06 17:59:51 christos Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)lstReplace.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: lstReplace.c,v 1.6 1999/12/18 21:58:08 espie Exp $";
+static char rcsid[] = "$OpenBSD: lstReplace.c,v 1.7 2000/06/10 01:41:07 espie Exp $";
#endif
#endif /* not lint */
@@ -63,10 +63,10 @@ static char rcsid[] = "$OpenBSD: lstReplace.c,v 1.6 1999/12/18 21:58:08 espie Ex
*-----------------------------------------------------------------------
*/
void
-Lst_Replace (ln, d)
+Lst_Replace(ln, d)
LstNode ln;
- ClientData d;
+ void *d;
{
if (ln != NULL)
- ((ListNode) ln)->datum = d;
+ ((ListNode)ln)->datum = d;
}