Skip to content

Commit

Permalink
Merge branch 'fgh_emscripten-vmem_save' into fgh_emscripten-combined
Browse files Browse the repository at this point in the history
  • Loading branch information
fghalasz committed Feb 16, 2024
2 parents 5f69aa4 + 258f70a commit a1dff20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vmemsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ LispPTR vmem_save(char *sysout_file_name)
TIMEOUT(sysout = open(sysout_file_name, O_WRONLY, 0666));
if (sysout == -1) {
/* No file error skip return. */
if (errno != 2) return (FILECANNOTOPEN); /* No such file error.*/
if (errno != ENOENT) return (FILECANNOTOPEN); /* No such file error.*/
} else
TIMEOUT(rval = close(sysout));

Expand Down Expand Up @@ -481,7 +481,7 @@ LispPTR vmem_save(char *sysout_file_name)
TIMEOUT(rval = unlink(sysout_file_name));
if (rval == -1) {
/* No file error skip return. */
if (errno != 2) /* No such file error.*/
if (errno != ENOENT) /* No such file error.*/
return (FILECANNOTOPEN);
}

Expand Down

0 comments on commit a1dff20

Please sign in to comment.