From: Vishwajith K <vishuvikas1996@xxxxxxxxx> Signed-off-by: Vishwajith K <vishuvikas1996@xxxxxxxxx> Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man2/shmop.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/shmop.2 b/man2/shmop.2 index 3a6c908ee..c7e66af0e 100644 --- a/man2/shmop.2 +++ b/man2/shmop.2 @@ -387,8 +387,8 @@ main(int argc, char *argv[]) errExit("shmget"); semid = semget(IPC_PRIVATE, 1, IPC_CREAT | 0600); - if (shmid == \-1) - errExit("shmget"); + if (semid == \-1) + errExit("semget"); /* Attach shared memory into our address space. */ -- 2.31.1