upgraded to the latest NetBSD version
[unix-history] / usr / src / usr.bin / make / lst.lib / lstForEach.c
index 8eede2c..72dc1f7 100644 (file)
@@ -1,21 +1,21 @@
-/*-
- * LstForeach.c --
- *     Perform a given function on all elements of a list.
+/*
+ * Copyright (c) 1988, 1989, 1990, 1993
+ *     The Regents of the University of California.  All rights reserved.
  *
  *
- * Copyright (c) 1988 by University of California Regents
+ * This code is derived from software contributed to Berkeley by
+ * Adam de Boor.
  *
  *
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appears in all copies.  Neither the University of California nor
- * Adam de Boor makes any representations about the suitability of this
- * software for any purpose.  It is provided "as is" without
- * express or implied warranty.
+ * %sccs.include.redist.c%
  */
  */
+
 #ifndef lint
 #ifndef lint
-static char *rcsid =
-"$Id: lstForEach.c,v 1.8 89/11/14 16:59:42 adam Exp $ SPRITE (Berkeley)";
-#endif lint
+static char sccsid[] = "@(#)lstForEach.c       8.2 (Berkeley) %G%";
+#endif /* not lint */
+
+/*-
+ * LstForeach.c --
+ *     Perform a given function on all elements of a list.
+ */
 
 #include       "lstInt.h"
 
 
 #include       "lstInt.h"
 
@@ -38,7 +38,7 @@ static char *rcsid =
 void
 Lst_ForEach (l, proc, d)
     Lst                        l;
 void
 Lst_ForEach (l, proc, d)
     Lst                        l;
-    register int       (*proc)();
+    register int       (*proc) __P((ClientData, ClientData));
     register ClientData        d;
 {
     Lst_ForEachFrom(l, Lst_First(l), proc, d);
     register ClientData        d;
 {
     Lst_ForEachFrom(l, Lst_First(l), proc, d);