[PATCH] semop.2: fix typo in example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Kirill A. Shutemov <kirill@xxxxxxxxxxxxx>
---
 man2/semop.2 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/man2/semop.2 b/man2/semop.2
index f5f54a9..b934018 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);
     }
-- 
1.5.6.5.GIT

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux