From: claudio Date: Tue, 22 Oct 2024 15:19:48 +0000 (+0000) Subject: Use imsg_get_fd() like everywhere else. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0a6e69e4571a11ce73f54b8da180633b4eb7de4a;p=openbsd Use imsg_get_fd() like everywhere else. OK florian@ dv@ --- 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);