SICS compiles under RHEL7

This commit is contained in:
2017-01-13 15:43:39 +01:00
parent 2673bb3b6d
commit 2670bafe53
7 changed files with 56 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/*---------------------------------------------------------------------------
logger.c
Logger.c
Markus Zolliker, Sept 2004
----------------------------------------------------------------------------
@ -205,7 +205,7 @@ int LoggerWrite0(Logger * log, time_t now, int period, char *value)
fprintf(fil, "%s\t%s\n", stim, value);
} else {
/* newline within string! do write only characters before nl */
fprintf(fil, "%s\t%.*s\n", stim, (nl - value), value);
fprintf(fil, "%s\t%.*s\n", stim, (int)(nl - value), value);
}
log->lastWrite = now;
fclose(fil);