diff options
Diffstat (limited to 'lib/libc/gen/err.3')
-rw-r--r-- | lib/libc/gen/err.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/err.3 b/lib/libc/gen/err.3 index 1add656944c..b462e3f863f 100644 --- a/lib/libc/gen/err.3 +++ b/lib/libc/gen/err.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: err.3,v 1.21 2019/05/16 13:35:16 schwarze Exp $ +.\" $OpenBSD: err.3,v 1.22 2021/10/24 21:24:20 deraadt Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 16 2019 $ +.Dd $Mdocdate: October 24 2021 $ .Dt ERR 3 .Os .Sh NAME @@ -166,7 +166,7 @@ information string and exit: .Bd -literal -offset indent if ((p = malloc(size)) == NULL) err(1, NULL); -if ((fd = open(file_name, O_RDONLY, 0)) == -1) +if ((fd = open(file_name, O_RDONLY)) == -1) err(1, "%s", file_name); .Ed .Pp @@ -178,10 +178,10 @@ if (tm.tm_hour < START_TIME) .Pp Warn of an error: .Bd -literal -offset indent -if ((fd = open(raw_device, O_RDONLY, 0)) == -1) +if ((fd = open(raw_device, O_RDONLY)) == -1) warnx("%s: %s: trying the block device", raw_device, strerror(errno)); -if ((fd = open(block_device, O_RDONLY, 0)) == -1) +if ((fd = open(block_device, O_RDONLY)) == -1) err(1, "%s", block_device); .Ed .Sh SEE ALSO |