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:
@@ -463,7 +463,7 @@ i = fxread (dpxb, sizeof (uint8), DP_NUMBY, uptr->fileref);
|
||||
for ( ; i < DP_NUMBY; i++) /* fill with 0's */
|
||||
dpxb[i] = 0;
|
||||
if (ferror (uptr->fileref)) { /* error? */
|
||||
perror ("DP I/O error");
|
||||
sim_perror ("DP I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
dp_done (STC_DTE);
|
||||
return SCPE_IOERR;
|
||||
@@ -479,7 +479,7 @@ for ( ; dp_bptr < DP_NUMBY; dp_bptr++)
|
||||
dpxb[dp_bptr] = dp_db; /* fill with last */
|
||||
fxwrite (dpxb, sizeof (uint8), DP_NUMBY, uptr->fileref);
|
||||
if (ferror (uptr->fileref)) { /* error? */
|
||||
perror ("DP I/O error");
|
||||
sim_perror ("DP I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
dp_done (STC_DTE);
|
||||
return SCPE_IOERR;
|
||||
|
||||
Reference in New Issue
Block a user