From d9fbb36ac7ad7c0ef71461c1c0d49ef4c309dc77 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 30 Jun 2013 22:46:06 +0200 Subject: [PATCH] CKTfndDev(), unuse `type' argument --- src/spicelib/analysis/noisean.c | 4 ++-- src/spicelib/analysis/tfanal.c | 4 ++-- src/spicelib/devices/ind/mutsetup.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/spicelib/analysis/noisean.c b/src/spicelib/analysis/noisean.c index b79cb29ce..eb738892b 100644 --- a/src/spicelib/analysis/noisean.c +++ b/src/spicelib/analysis/noisean.c @@ -48,7 +48,7 @@ NOISEan (CKTcircuit *ckt, int restart) inst = NULL; code = CKTtypelook("Vsource"); if (code != -1) { - error = CKTfndDev(ckt, &code, &inst, job->input); + error = CKTfndDev(ckt, NULL, &inst, job->input); if (!error && !((VSRCinstance *)inst)->VSRCacGiven) { errMsg = TMALLOC(char, strlen(noacinput) + 1); strcpy(errMsg,noacinput); @@ -58,7 +58,7 @@ NOISEan (CKTcircuit *ckt, int restart) code = CKTtypelook("Isource"); if (code != -1 && inst==NULL) { - error = CKTfndDev(ckt, &code, &inst, job->input); + error = CKTfndDev(ckt, NULL, &inst, job->input); if (error) { /* XXX ??? */ SPfrontEnd->IFerror (ERR_WARNING, diff --git a/src/spicelib/analysis/tfanal.c b/src/spicelib/analysis/tfanal.c index bf462a7e0..21dba5d2d 100644 --- a/src/spicelib/analysis/tfanal.c +++ b/src/spicelib/analysis/tfanal.c @@ -51,7 +51,7 @@ TFanal(CKTcircuit *ckt, int restart) Itype = CKTtypelook("Isource"); Vtype = CKTtypelook("Vsource"); if(Itype != -1) { - error = CKTfndDev(ckt, &Itype, &ptr, job->TFinSrc); + error = CKTfndDev(ckt, NULL, &ptr, job->TFinSrc); if(error ==0) { job->TFinIsI = 1; job->TFinIsV = 0; @@ -61,7 +61,7 @@ TFanal(CKTcircuit *ckt, int restart) } if( (Vtype != -1) && (ptr==NULL) ) { - error = CKTfndDev(ckt, &Vtype, &ptr, job->TFinSrc); + error = CKTfndDev(ckt, NULL, &ptr, job->TFinSrc); job->TFinIsV = 1; job->TFinIsI = 0; if(error !=0) { diff --git a/src/spicelib/devices/ind/mutsetup.c b/src/spicelib/devices/ind/mutsetup.c index d3abc2817..142de763d 100644 --- a/src/spicelib/devices/ind/mutsetup.c +++ b/src/spicelib/devices/ind/mutsetup.c @@ -43,7 +43,7 @@ MUTsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) return(E_INTERN); } - error = CKTfndDev(ckt, &ktype, (GENinstance **) &(here->MUTind1), here->MUTindName1); + error = CKTfndDev(ckt, NULL, (GENinstance **) &(here->MUTind1), here->MUTindName1); if(error) { IFuid namarray[2]; namarray[0]=here->MUTname; @@ -52,7 +52,7 @@ MUTsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) "%s: coupling to non-existant inductor %s.", namarray); } - error = CKTfndDev(ckt, &ktype, (GENinstance **) &(here->MUTind2), here->MUTindName2); + error = CKTfndDev(ckt, NULL, (GENinstance **) &(here->MUTind2), here->MUTindName2); if(error) { IFuid namarray[2]; namarray[0]=here->MUTname;