mirror of
https://github.com/simh/simh.git
synced 2026-01-31 13:53:10 +00:00
Compiler suggested cleanup
This commit is contained in:
@@ -1246,11 +1246,12 @@ int written;
|
||||
|
||||
written = write (port, (void *) buffer, (size_t) count); /* write the buffer to the serial port */
|
||||
|
||||
if (written == -1)
|
||||
if (written == -1) {
|
||||
if (errno != EAGAIN) /* unexpected error? */
|
||||
sim_error_serial ("write", errno); /* report it */
|
||||
else
|
||||
written = 0; /* not an error, but nothing written */
|
||||
}
|
||||
|
||||
return (int32) written; /* return number of characters written */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user