patch from PR#3573 to rename a variable "main" to "mainList"

This commit is contained in:
fair 1998-03-23 08:52:48 +00:00
parent d0121866f7
commit 78f41cb540
1 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: parse.c,v 1.36 1997/09/28 03:31:09 lukem Exp $ */
/* $NetBSD: parse.c,v 1.37 1998/03/23 08:52:48 fair Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@ -39,14 +39,14 @@
*/
#ifdef MAKE_BOOTSTRAP
static char rcsid[] = "$NetBSD: parse.c,v 1.36 1997/09/28 03:31:09 lukem Exp $";
static char rcsid[] = "$NetBSD: parse.c,v 1.37 1998/03/23 08:52:48 fair Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
__RCSID("$NetBSD: parse.c,v 1.36 1997/09/28 03:31:09 lukem Exp $");
__RCSID("$NetBSD: parse.c,v 1.37 1998/03/23 08:52:48 fair Exp $");
#endif
#endif /* not lint */
#endif
@ -2592,18 +2592,18 @@ Parse_End()
Lst
Parse_MainName()
{
Lst main; /* result list */
Lst mainList; /* result list */
main = Lst_Init (FALSE);
mainList = 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);
(void) Lst_AtEnd (mainList, (ClientData)mainNode);
Lst_Concat(mainList, mainNode->cohorts, LST_CONCNEW);
}
else
(void) Lst_AtEnd (main, (ClientData)mainNode);
return (main);
(void) Lst_AtEnd (mainList, (ClientData)mainNode);
return (mainList);
}