Skip to content

Commit

Permalink
The compiler complained that we ignored the return of write(), we
Browse files Browse the repository at this point in the history
change to the library call and keep it happy.
  • Loading branch information
rmottola committed Oct 9, 2023
1 parent 531d3b8 commit 5121156
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tools/gdnc.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@
}
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)
Expand Down

0 comments on commit 5121156

Please sign in to comment.