From 0a6e69e4571a11ce73f54b8da180633b4eb7de4a Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 22 Oct 2024 15:19:48 +0000 Subject: [PATCH] Use imsg_get_fd() like everywhere else. OK florian@ dv@ --- usr.sbin/vmd/vmm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/vmd/vmm.c b/usr.sbin/vmd/vmm.c index 1da919fcbd4..ca1c58983ea 100644 --- a/usr.sbin/vmd/vmm.c +++ b/usr.sbin/vmd/vmm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmm.c,v 1.123 2024/09/26 01:45:13 jsg Exp $ */ +/* $OpenBSD: vmm.c,v 1.124 2024/10/22 15:19:48 claudio Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -318,7 +318,7 @@ vmm_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg) case IMSG_VMDOP_RECEIVE_PSP_FD: if (env->vmd_psp_fd > -1) fatalx("already received psp fd"); - env->vmd_psp_fd = imsg->fd; + env->vmd_psp_fd = imsg_get_fd(imsg); break; default: return (-1); -- 2.20.1