diff --git a/logger.c b/logger.c index 1715029f..1b5cd406 100644 --- a/logger.c +++ b/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; diff --git a/scriptcontext.c b/scriptcontext.c index e8608cc0..684c2f5d 100644 --- a/scriptcontext.c +++ b/scriptcontext.c @@ -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);