mirror of
https://github.com/simh/simh.git
synced 2026-01-29 13:11:26 +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:
@@ -657,7 +657,7 @@ uint32 i;
|
||||
|
||||
i = fxread (idcxb, sizeof (uint8), IDC_NUMBY, uptr->fileref);
|
||||
if (ferror (uptr->fileref)) { /* error? */
|
||||
perror ("IDC I/O error");
|
||||
sim_perror ("IDC I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
idc_done (STC_DTE);
|
||||
return SCPE_IOERR;
|
||||
@@ -675,7 +675,7 @@ for ( ; idc_bptr < IDC_NUMBY; idc_bptr++)
|
||||
idcxb[idc_bptr] = idc_db; /* fill with last */
|
||||
fxwrite (idcxb, sizeof (uint8), IDC_NUMBY, uptr->fileref);
|
||||
if (ferror (uptr->fileref)) { /* error? */
|
||||
perror ("IDC I/O error");
|
||||
sim_perror ("IDC I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
idc_done (STC_DTE);
|
||||
return SCPE_IOERR;
|
||||
|
||||
Reference in New Issue
Block a user