=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/for.c,v retrieving revision 1.15 retrieving revision 1.16 diff -c -r1.15 -r1.16 *** src/usr.bin/make/for.c 2000/03/26 16:21:32 1.15 --- src/usr.bin/make/for.c 2000/06/10 01:32:22 1.16 *************** *** 1,4 **** ! /* $OpenBSD: for.c,v 1.15 2000/03/26 16:21:32 espie Exp $ */ /* $NetBSD: for.c,v 1.4 1996/11/06 17:59:05 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: for.c,v 1.16 2000/06/10 01:32:22 espie Exp $ */ /* $NetBSD: for.c,v 1.4 1996/11/06 17:59:05 christos Exp $ */ /* *************** *** 82,88 **** #if 0 static char sccsid[] = "@(#)for.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: for.c,v 1.15 2000/03/26 16:21:32 espie Exp $"; #endif #endif /* not lint */ --- 82,88 ---- #if 0 static char sccsid[] = "@(#)for.c 8.1 (Berkeley) 6/6/93"; #else ! static char rcsid[] = "$OpenBSD: for.c,v 1.16 2000/06/10 01:32:22 espie Exp $"; #endif #endif /* not lint */ *************** *** 111,117 **** unsigned long level; /* Nesting level */ }; ! static int ForExec __P((ClientData, ClientData)); static void build_words_list __P((Lst, const char *)); /* Cut a string into words, stuff that into list. */ --- 111,117 ---- unsigned long level; /* Nesting level */ }; ! static void ForExec __P((ClientData, ClientData)); static void build_words_list __P((Lst, const char *)); /* Cut a string into words, stuff that into list. */ *************** *** 268,274 **** * Expand the for loop for this index and push it in the Makefile *----------------------------------------------------------------------- */ ! static int ForExec(namep, argp) ClientData namep; ClientData argp; --- 268,274 ---- * Expand the for loop for this index and push it in the Makefile *----------------------------------------------------------------------- */ ! static void ForExec(namep, argp) ClientData namep; ClientData argp; *************** *** 286,292 **** Parse_FromString(Buf_Retrieve(&arg->buf), arg->lineno); Var_Delete(arg->var, VAR_GLOBAL); - return 0; } --- 286,291 ---- *************** *** 307,312 **** Lst_ForEach(arg->lst, ForExec, arg); free(arg->var); free(arg->text); ! Lst_Destroy(arg->lst, (void (*) __P((ClientData)))free); free(arg); } --- 306,311 ---- Lst_ForEach(arg->lst, ForExec, arg); free(arg->var); free(arg->text); ! Lst_Destroy(arg->lst, (SimpleProc)free); free(arg); }