aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2008-09-28 20:41:42 +0300
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-09-29 09:49:35 +0200
commitafc4edc132a574771480d38c3b64a0143776bd60 (patch)
treec9e9c47fdbb09814f0d59edebec5b12c948a23ad
parent16d023bce2d5f48128dec3e69d066fd6c91a6cd0 (diff)
downloadman-pages-afc4edc132a574771480d38c3b64a0143776bd60.tar.gz
semop.2: fix typo in example
(The '&' before sop in the semop() call is unneeded.) Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/semop.22
1 files changed, 1 insertions, 1 deletions
diff --git a/man2/semop.2 b/man2/semop.2
index f5f54a93c2..b93401844d 100644
--- a/man2/semop.2
+++ b/man2/semop.2
@@ -505,7 +505,7 @@ and then increment the semaphore value by one.
sops[1].sem_op = 1; /* Increment value by one */
sops[1].sem_flg = 0;
- if (semop(semid, &sop, 2) == \-1) {
+ if (semop(semid, sops, 2) == \-1) {
perror("semop");
exit(EXIT_FAILURE);
}