aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}