From 674c9c56cfc39d9ab6cfd4ea73420a28eefe59cf Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 17 Dec 2020 23:36:46 +0700 Subject: [PATCH] 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`.) --- src/ldsout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ldsout.c b/src/ldsout.c index 0c2fb8c..0b00ad0 100644 --- a/src/ldsout.c +++ b/src/ldsout.c @@ -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);