checkpatch fixes

This commit is contained in:
2019-01-09 23:58:59 +02:00
parent fcdb9a6980
commit c0086a8509
3 changed files with 11 additions and 9 deletions

View File

@@ -34,11 +34,13 @@ static pthread_once_t init_once = PTHREAD_ONCE_INIT;
static void open_logs(void)
{
if ((fderr = fopen(conf.rmps.errlog, "a")) == NULL)
fderr = fopen(conf.rmps.errlog, "a");
if (fderr == NULL)
fderr = stderr;
else
setvbuf(fderr, NULL, _IOLBF, 0);
if ((fdout = fopen(conf.rmps.logfile, "a")) == NULL)
fdout = fopen(conf.rmps.logfile, "a");
if (fdout == NULL)
fdout = stdout;
else
setvbuf(fdout, NULL, _IOLBF, 0);