diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-07-06 12:57:38 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-07-06 12:57:38 +0000 |
| commit | 2bc2f4798feabd972879ff8f1633b08e337f57e1 (patch) | |
| tree | 7c2c27db04f020b2ec55c5e24bf135161c5d0b84 /man3/err.3 | |
| parent | 06795d3a1f10b71e1da07ac269240455d40e62b3 (diff) | |
| download | man-pages-2bc2f4798feabd972879ff8f1633b08e337f57e1.tar.gz | |
hyphen/dash fixes
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 |
