The compiler complained that we ignored the return of write(), we

change to the library call and keep it happy.
This commit is contained in:
Riccardo Mottola 2023-10-09 21:02:35 +02:00
parent 531d3b8559
commit 5121156f6b

View file

@ -102,13 +102,13 @@ gdnc_log (int prio, const char *ebuf)
}
else if (prio == LOG_INFO)
{
write (1, ebuf, strlen (ebuf));
write (1, "\n", 1);
fprintf (stdout, "%s\n", ebuf);
fflush (stdout);
}
else
{
write (2, ebuf, strlen (ebuf));
write (2, "\n", 1);
fprintf (stderr, "%s\n", ebuf);
fflush (stderr);
}
if (prio == LOG_CRIT)