diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2021-10-25 11:44:27 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2021-10-25 11:44:27 +0200 |
commit | 2bcbe24155c6a631ddddcab6ce6f435a7dca62bd (patch) | |
tree | a36656c9c1215fc5ebce7d70abd20d73d4f79a00 | |
parent | f7d5299db57e3e6ae654e561349c54a01b417e78 (diff) |
remove extra 3rd parameter to open()
When O_CREAT is not present in flags, this parameter is ignored.
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
-rw-r--r-- | xpr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -612,7 +612,7 @@ void parse_args( } if (infilename) { - f = open(infilename, O_RDONLY|O_BINARY, 0); + f = open(infilename, O_RDONLY|O_BINARY); if (f < 0) { fprintf(stderr, "xpr: error opening \"%s\" for input\n", infilename); |