Thread (1 message) 1 message, 1 author, 2008-09-29

Re: [PATCH] semop.2: fix typo in example

From: Michael Kerrisk <hidden>
Date: 2008-09-29 07:42:09

Possibly related (same subject, not in this thread)

Kirril,

On Sun, Sep 28, 2008 at 7:41 PM, Kirill A. Shutemov
[off-list ref] wrote:
quoted hunk
Signed-off-by: Kirill A. Shutemov <redacted>
---
 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);
    }
--
Thanks.  Applied for 3.11.

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help