X-Git-Url: https://git.saurik.com/apple/file_cmds.git/blobdiff_plain/00337e45cbde0be25dd3e61cbd0bd3a55c65ab01..refs/heads/master:/ipcrm/ipcrm.c diff --git a/ipcrm/ipcrm.c b/ipcrm/ipcrm.c index 2a401f3..e90aaa1 100644 --- a/ipcrm/ipcrm.c +++ b/ipcrm/ipcrm.c @@ -83,14 +83,12 @@ static int shmrm(key_t key, int id) static int semrm(key_t key, int id) { - union semun arg; - if (key) { id = semget(key, 0, 0); if (id == -1) return -1; } - return semctl(id, 0, IPC_RMID, arg); + return semctl(id, 0, IPC_RMID); } static void not_configured(__unused int unused)