Consolidate handling of some fopen failures.

This commit is contained in:
Matt Kraai
2000-09-27 02:43:35 +00:00
parent e0bcce09ba
commit bbaef66b3f
14 changed files with 32 additions and 73 deletions

View File

@ -330,10 +330,7 @@ void saveoldmap(int fd, char *omfil)
}
#endif
if ((fp = fopen(omfil, "w")) == NULL) {
perror(omfil);
exit(1);
}
fp = xfopen(omfil, "w");
#ifdef GIO_UNISCRNMAP
if (is_old_map) {
#endif