1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-14 23:46:14 +00:00

Remove extra arg to open when loading sysout. (#93)

The `open()` call can take a third argument (for when the mode
is `O_CREAT`). However, it is not needed here as we aren't
using `O_CREAT`. (And if we needed an extra arg, it wouldn't
have been `NULL`.)
This commit is contained in:
Bruce Mitchener 2020-12-17 23:36:46 +07:00 committed by GitHub
parent 9b9c7b0283
commit 674c9c56cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ int sysout_loader(char * sysout_file_name, int sys_size)
*/
/* open SysoutFile */
sysout = open(sysout_file_name, O_RDONLY, NULL);
sysout = open(sysout_file_name, O_RDONLY);
if (sysout == -1) {
sprintf(errmsg, "sysout_loader: can't open sysout file: %s", sysout_file_name);
perror(errmsg);