- cosmetics

This commit is contained in:
zolliker
2011-03-25 14:23:36 +00:00
parent ce77a0b2f0
commit 3421c707f7
2 changed files with 4 additions and 3 deletions

View File

@ -227,8 +227,8 @@ int LoggerWrite0(Logger * log, time_t now, int period, char *value)
}
assert(log->old);
assert(l < log->oldsize);
if(log->old != value){
strcpy(log->old, value);
if (log->old != value) {
strcpy(log->old, value);
}
assert(log->old[l] == '\0');
log->last = now;

View File

@ -1126,6 +1126,7 @@ static char *TransactionHandler(void *actionData, char *lastReply,
return NULL;
}
}
static int SctTransactMatch(void *d1, void *d2)
{
return d1 == d2;
@ -1156,7 +1157,7 @@ static int SctTransactCmd(pSICSOBJ ccmd, SConnection * con,
break;
}
}
if(st->reply != NULL){
if (st->reply != NULL) {
SCWrite(con,st->reply,eValue);
} else {
SCWrite(con,"ERROR: no reply!",eError);