mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
531d3b8559
commit
5121156f6b
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue