diff --git a/alliance/src/sea/src/util_MBK.c b/alliance/src/sea/src/util_MBK.c index 0dd58a5f..6e9974da 100644 --- a/alliance/src/sea/src/util_MBK.c +++ b/alliance/src/sea/src/util_MBK.c @@ -1,6 +1,6 @@ /* - * $Id: util_MBK.c,v 1.2 2002/09/30 16:21:19 czo Exp $ + * $Id: util_MBK.c,v 1.3 2003/09/16 10:14:38 jpc Exp $ * * /----------------------------------------------------------------\ * | | @@ -1450,8 +1450,11 @@ extern void addfeed (apLofig, apPhfig) /* Find VDD & VSS signals. */ - for (sigVDD = apLofig->LOSIG; - !isvdd (getsigname (sigVDD)); sigVDD = sigVDD->NEXT); + sigVDD = apLofig->LOSIG; + while (sigVDD != NULL) { + if (isvdd (getsigname (sigVDD))) break; + sigVDD = sigVDD->NEXT; + } if (!sigVDD) { errMBK (NULL); @@ -1459,8 +1462,11 @@ extern void addfeed (apLofig, apPhfig) EXIT (1); } - for (sigVSS = apLofig->LOSIG; - !isvss (getsigname (sigVSS)); sigVSS = sigVSS->NEXT); + sigVSS = apLofig->LOSIG; + while (sigVSS != NULL) { + if (isvdd (getsigname (sigVSS))) break; + sigVSS = sigVSS->NEXT; + } if (!sigVSS) { errMBK (NULL);