diff options
Diffstat (limited to 'man3/err.3')
| -rw-r--r-- | man3/err.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/man3/err.3 b/man3/err.3 index f32a3ad0e2..6d3f9246f0 100644 --- a/man3/err.3 +++ b/man3/err.3 @@ -124,7 +124,7 @@ Display the current errno 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, 0)) == \-1) err(1, "%s", file_name); .Ed .Pp @@ -136,10 +136,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, 0)) == \-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, 0)) == \-1) err(1, "%s", block_device); .Ed .Sh SEE ALSO |
