mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
All: Convert from C runtime library perror() to sim_perror so that all messages will arrive in the same place(s).
This commit is contained in:
@@ -592,7 +592,7 @@ rbda = rbda + ((wc + (RB_NUMWD(uptr) - 1)) / RB_NUMWD(uptr));
|
||||
rb_set_done (0);
|
||||
|
||||
if (err != 0) { /* error? */
|
||||
perror ("RB I/O error");
|
||||
sim_perror ("RB I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
return SCPE_IOERR;
|
||||
}
|
||||
|
||||
@@ -816,7 +816,7 @@ if (cso_csr & CSR_IE)
|
||||
if ((cso_unit.flags & UNIT_ATT) == 0)
|
||||
return SCPE_OK;
|
||||
if (putc (cso_unit.buf, cso_unit.fileref) == EOF) {
|
||||
perror ("CSO I/O error");
|
||||
sim_perror ("CSO I/O error");
|
||||
clearerr (cso_unit.fileref);
|
||||
return SCPE_IOERR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user