mirror of
https://github.com/simh/simh.git
synced 2026-04-28 12:47: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:
@@ -1704,7 +1704,7 @@ static t_stat cpu_attach (UNIT *uptr, char *cptr)
|
||||
return SCPE_ARG;
|
||||
}
|
||||
if ((fd = fopen(mapfile, "r")) == NULL) {
|
||||
perror(mapfile);
|
||||
sim_perror(mapfile);
|
||||
return SCPE_OPENERR;
|
||||
}
|
||||
|
||||
|
||||
@@ -662,7 +662,7 @@ static t_stat delete_cmd (int32 flag, char *cptr)
|
||||
status = remove(gbuf); /* delete the file */
|
||||
|
||||
if (status != 0 && errno != ENOENT) /* print message if failed and file exists */
|
||||
perror(gbuf);
|
||||
sim_perror(gbuf);
|
||||
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user