=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/parse.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/make/parse.c 1996/11/30 21:09:02 1.11 --- src/usr.bin/make/parse.c 1997/03/26 17:46:44 1.12 *************** *** 1,4 **** ! /* $OpenBSD: parse.c,v 1.11 1996/11/30 21:09:02 millert Exp $ */ /* $NetBSD: parse.c,v 1.27 1996/11/06 17:59:20 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: parse.c,v 1.12 1997/03/26 17:46:44 deraadt Exp $ */ /* $NetBSD: parse.c,v 1.27 1996/11/06 17:59:20 christos Exp $ */ /* *************** *** 43,49 **** #if 0 static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; #else ! static char rcsid[] = "$OpenBSD: parse.c,v 1.11 1996/11/30 21:09:02 millert Exp $"; #endif #endif /* not lint */ --- 43,49 ---- #if 0 static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; #else ! static char rcsid[] = "$OpenBSD: parse.c,v 1.12 1997/03/26 17:46:44 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 2574,2591 **** Lst Parse_MainName() { ! Lst main; /* result list */ ! main = Lst_Init (FALSE); if (mainNode == NILGNODE) { Punt ("no target to make."); /*NOTREACHED*/ } else if (mainNode->type & OP_DOUBLEDEP) { ! (void) Lst_AtEnd (main, (ClientData)mainNode); ! Lst_Concat(main, mainNode->cohorts, LST_CONCNEW); } else ! (void) Lst_AtEnd (main, (ClientData)mainNode); ! return (main); } --- 2574,2591 ---- Lst Parse_MainName() { ! Lst listmain; /* result list */ ! listmain = Lst_Init (FALSE); if (mainNode == NILGNODE) { Punt ("no target to make."); /*NOTREACHED*/ } else if (mainNode->type & OP_DOUBLEDEP) { ! (void) Lst_AtEnd (listmain, (ClientData)mainNode); ! Lst_Concat(listmain, mainNode->cohorts, LST_CONCNEW); } else ! (void) Lst_AtEnd (listmain, (ClientData)mainNode); ! return (listmain); }