aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2022-12-11 18:24:55 +0100
committerAlejandro Colomar <alx@kernel.org>2022-12-11 18:24:55 +0100
commitb27acc76d5f3e33a0a9a831132e9a8efbc3034bd (patch)
tree2e2b80b7cdcc376393670bc6a3dc71721bb3ea66
parentb53bfa6dd1c51a6e3e606c61b4da91fdd3a65f78 (diff)
downloadman-pages-b27acc76d5f3e33a0a9a831132e9a8efbc3034bd.tar.gz
shm_open.3: tfix
Reported-by: 1092615079 <1092615079@qq.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/shm_open.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/shm_open.3 b/man3/shm_open.3
index 899a4d97dd..e001720fcd 100644
--- a/man3/shm_open.3
+++ b/man3/shm_open.3
@@ -368,8 +368,8 @@ main(int argc, char *argv[])
/* Map the object into the caller\(aqs address space. */
- *shmp = mmap(NULL, sizeof(*shmp), PROT_READ | PROT_WRITE,
- MAP_SHARED, fd, 0);
+ shmp = mmap(NULL, sizeof(*shmp), PROT_READ | PROT_WRITE,
+ MAP_SHARED, fd, 0);
if (shmp == MAP_FAILED)
errExit("mmap");