- cosmetics
This commit is contained in:
4
logger.c
4
logger.c
@ -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;
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user