From 664bc91ac71b9e7c6d1a6618d6af7ba01b010a1e Mon Sep 17 00:00:00 2001 From: zolliker Date: Fri, 27 Feb 2009 08:00:04 +0000 Subject: [PATCH] - fixed buggy assignment statements (== replaced by =) --- itcdriv.c | 2 +- lmd200.c | 4 ++-- lsc370driv.c | 8 +++----- lscsupport.c | 1 - pardef.c | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/itcdriv.c b/itcdriv.c index ea3173b..1a702d1 100644 --- a/itcdriv.c +++ b/itcdriv.c @@ -401,7 +401,7 @@ void ItcStatus(Itc * drv) drv->h = ans[10] - '0'; if (ans[11] == 'L' && drv->pidMode != 0 && !EaseGetUpdate(drv, ITC_PIDMODE)) { - drv->pidMode == ans[12] - '0' + 1; + drv->pidMode = ans[12] - '0' + 1; } } else { drv->h = drv->controlChan; diff --git a/lmd200.c b/lmd200.c index 6928118..ea918db 100644 --- a/lmd200.c +++ b/lmd200.c @@ -159,7 +159,7 @@ static void interpretLine(pSICSOBJ self, pLMD200 priv) case WAITDATA1: if (strstr(priv->lineBuffer, "...0") == NULL) { /* this data is out of order, recover... */ - priv->state == IDLE; + priv->state = IDLE; return; } storeData(self, 0, priv->lineBuffer); @@ -168,7 +168,7 @@ static void interpretLine(pSICSOBJ self, pLMD200 priv) case WAITDATA2: if (strstr(priv->lineBuffer, "...0") == NULL) { /* this data is out of order, recover... */ - priv->state == IDLE; + priv->state = IDLE; return; } storeData(self, 8, priv->lineBuffer); diff --git a/lsc370driv.c b/lsc370driv.c index b64b301..1edc348 100644 --- a/lsc370driv.c +++ b/lsc370driv.c @@ -90,9 +90,7 @@ static float Lsc370Power(Lsc370 * drv, float percent) static void Lsc370ParDef(void *object) { Lsc370 *drv = ParCast(&lsc370Class, object); - EaseBase *eab = object; - float power, maxPower; - int iRng; + float power; int i; static char *heaterList[] = { "off", @@ -290,7 +288,7 @@ static long Lsc370Read(long pc, void *object) drv->index = 0; chanLoop: if (drv->channel[drv->index] == 0) { - drv->temp[drv->index] == PAR_NAN; + drv->temp[drv->index] = PAR_NAN; goto noRead; } snprintf(buf, sizeof buf, "RDGK?%d", drv->channel[drv->index]); @@ -384,7 +382,7 @@ static long Lsc370Read(long pc, void *object) ParLog(drv); - fsm_quit:return 0; + return 0; } /* FSM END ******************************** */ } diff --git a/lscsupport.c b/lscsupport.c index 33182f7..a80cafe 100644 --- a/lscsupport.c +++ b/lscsupport.c @@ -23,7 +23,6 @@ int LscHandler(void *object) { int iret, l; EaseBase *eab = EaseBaseCast(object); - char *corr; if (eab->state < EASE_idle) goto quit; diff --git a/pardef.c b/pardef.c index 8a448fb..8adbe5f 100644 --- a/pardef.c +++ b/pardef.c @@ -1022,7 +1022,7 @@ void ParOut(char *buf) if (endp != buf) { p = ParInt2Text(i); } else { - p == NULL; + p = NULL; } if (p == NULL) p = ""; /* undefined */