=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/diff.c,v retrieving revision 1.163 retrieving revision 1.164 diff -u -r1.163 -r1.164 --- src/usr.bin/cvs/diff.c 2017/06/01 08:08:24 1.163 +++ src/usr.bin/cvs/diff.c 2021/10/24 21:24:16 1.164 @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.163 2017/06/01 08:08:24 joris Exp $ */ +/* $OpenBSD: diff.c,v 1.164 2021/10/24 21:24:16 deraadt Exp $ */ /* * Copyright (c) 2008 Tobias Stoeckmann * Copyright (c) 2006 Joris Vink @@ -586,11 +586,11 @@ } if (fd1 == -1) { - if ((fd1 = open(CVS_PATH_DEVNULL, O_RDONLY, 0)) == -1) + if ((fd1 = open(CVS_PATH_DEVNULL, O_RDONLY)) == -1) fatal("cannot open %s", CVS_PATH_DEVNULL); } if (fd2 == -1) { - if ((fd2 = open(CVS_PATH_DEVNULL, O_RDONLY, 0)) == -1) + if ((fd2 = open(CVS_PATH_DEVNULL, O_RDONLY)) == -1) fatal("cannot open %s", CVS_PATH_DEVNULL); }