From eedb80a2ba5393624f1ef0f9f4ae653ae36dc47e Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 8 May 2014 21:05:23 +0200 Subject: [PATCH] rewrite, using IFerrorf() --- src/spicelib/devices/hisimhv1/hsmhvset.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/spicelib/devices/hisimhv1/hsmhvset.c b/src/spicelib/devices/hisimhv1/hsmhvset.c index 613855d7d..830554a73 100644 --- a/src/spicelib/devices/hisimhv1/hsmhvset.c +++ b/src/spicelib/devices/hisimhv1/hsmhvset.c @@ -919,14 +919,11 @@ int HSMHVsetup( if ( here->HSMHV_cosubnode == 0 && here->HSMHVsubNode >= 0 ) { if ( here->HSMHVtempNode >= 0 ) { /* FATAL Error when 6th node is defined and COSUBNODE=0 */ - IFuid namarr[2]; - namarr[0] = here->HSMHVname; - namarr[1] = model->HSMHVmodName; - (*(SPfrontEnd->IFerror)) + SPfrontEnd->IFerrorf ( ERR_FATAL, "HiSIM_HV: MOSFET(%s) MODEL(%s): 6th node is defined and COSUBNODE=0", - namarr + here->HSMHVname, model->HSMHVmodName ); return (E_BADPARM); } else {