From 2516a118a342aeb20c35aff76e88ccbd8eee46d0 Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 4 Aug 2012 16:24:38 +0200 Subject: [PATCH] indentation --- src/spicelib/devices/cktfinddev.c | 4 ++-- src/spicelib/parser/inpgmod.c | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/spicelib/devices/cktfinddev.c b/src/spicelib/devices/cktfinddev.c index 72f8a2285..2db4ff231 100644 --- a/src/spicelib/devices/cktfinddev.c +++ b/src/spicelib/devices/cktfinddev.c @@ -46,8 +46,8 @@ CKTfndDev(CKTcircuit *ckt, int *type, GENinstance **fast, IFuid name, GENmodel * /* have device type, need to find model & device */ /* look through all models */ for (mods = ckt->CKThead[*type]; - mods != NULL ; - mods = mods->GENnextModel) + mods != NULL ; + mods = mods->GENnextModel) { /* and all instances */ if (modname == NULL || mods->GENmodName == modname) { diff --git a/src/spicelib/parser/inpgmod.c b/src/spicelib/parser/inpgmod.c index fbe5fb290..c9a1b01cc 100644 --- a/src/spicelib/parser/inpgmod.c +++ b/src/spicelib/parser/inpgmod.c @@ -228,13 +228,13 @@ INPgetModBin( CKTcircuit* ckt, char* name, INPmodel** model, INPtables* tab, cha && modtmp->INPmodType != INPtypelook ("HiSIMHV") ) continue; /* We left the loop if the model is not in the list */ - if (modtmp->INPmodType < 0) { /* First check for illegal model type */ - /* illegal device type, so can't handle */ - *model = NULL; - err = TMALLOC(char, 35 + strlen(name)); - (void) sprintf(err,"Unknown device type for model %s \n", name); - return (err); - } /* end of checking for illegal model */ + if (modtmp->INPmodType < 0) { /* First check for illegal model type */ + /* illegal device type, so can't handle */ + *model = NULL; + err = TMALLOC(char, 35 + strlen(name)); + (void) sprintf(err,"Unknown device type for model %s \n", name); + return (err); + } /* end of checking for illegal model */ if ( parse_line( modtmp->INPmodLine->line, model_tokens, 4, parse_values, parse_found ) != TRUE ) continue;