diff --git a/criu/shmem.c b/criu/shmem.c index 69165b64c..af3b4c8f5 100644 --- a/criu/shmem.c +++ b/criu/shmem.c @@ -436,7 +436,7 @@ int collect_shmem(int pid, struct vma_area *vma) return 0; } -static int shmem_wait_and_open(int pid, struct shmem_info *si, VmaEntry *vi) +static int shmem_wait_and_open(struct shmem_info *si, VmaEntry *vi) { char path[128]; int ret; @@ -515,7 +515,7 @@ static int open_shmem(int pid, struct vma_area *vma) BUG_ON(si->pid == SYSVIPC_SHMEM_PID); if (si->pid != pid) - return shmem_wait_and_open(pid, si, vi); + return shmem_wait_and_open(si, vi); if (si->fd != -1) { f = dup(si->fd);