aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2007-12-22 16:26:51 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2007-12-22 16:26:51 +0000
commit009df872f730972ec53a70652959c7b47c7ece8b (patch)
tree49bf3c209fb65d041d8518827160d6e2238327ac /man2
parenta574189c5f9beb43725a4038cbfbf02598442746 (diff)
downloadman-pages-009df872f730972ec53a70652959c7b47c7ece8b.tar.gz
Format casts so that there is a non-breaking space after the
type, and remove unnecessary parentheses around the casted value. Thus, for example, the following: .IR "(size_t) (\-1)" . becomes: .IR "(size_t)\ \-1" .
Diffstat (limited to 'man2')
-rw-r--r--man2/getsid.22
-rw-r--r--man2/mmap.22
-rw-r--r--man2/mremap.22
-rw-r--r--man2/shmop.22
4 files changed, 4 insertions, 4 deletions
diff --git a/man2/getsid.2 b/man2/getsid.2
index 1d00fe24bb..4e252fd0ef 100644
--- a/man2/getsid.2
+++ b/man2/getsid.2
@@ -47,7 +47,7 @@ returns the session ID of the process with process ID
session leader.)
.SH RETURN VALUE
On success, a session ID is returned.
-On error, \fI(pid_t) \-1\fP will be returned, and
+On error, \fI(pid_t)\ \-1\fP will be returned, and
.I errno
is set appropriately.
.SH ERRORS
diff --git a/man2/mmap.2 b/man2/mmap.2
index da5c07cb07..9d97c91f13 100644
--- a/man2/mmap.2
+++ b/man2/mmap.2
@@ -327,7 +327,7 @@ returns a pointer to the mapped area.
On error, the value
.B MAP_FAILED
(that is,
-.IR "(void *) \-1" )
+.IR "(void\ *)\ \-1" )
is returned, and
.I errno
is set appropriately.
diff --git a/man2/mremap.2 b/man2/mremap.2
index c74ab9a08f..9f40ed20cd 100644
--- a/man2/mremap.2
+++ b/man2/mremap.2
@@ -125,7 +125,7 @@ On success
returns a pointer to the new virtual memory area.
On error, the value
.B MAP_FAILED
-(that is, \fI(void *) \-1\fP) is returned,
+(that is, \fI(void\ *)\ \-1\fP) is returned,
and \fIerrno\fP is set appropriately.
.SH ERRORS
.TP
diff --git a/man2/shmop.2 b/man2/shmop.2
index 03c3eb6a01..6a0676e64f 100644
--- a/man2/shmop.2
+++ b/man2/shmop.2
@@ -170,7 +170,7 @@ all attached shared memory segments are detached from the process.
On success
.BR shmat ()
returns the address of the attached shared memory segment; on error
-.I (void *) \-1
+.I (void\ *)\ \-1
is returned, and
.I errno
is set to indicate the cause of the error.