summaryrefslogtreecommitdiff
path: root/usr.sbin/vmctl
diff options
context:
space:
mode:
authordv <dv@cvs.openbsd.org>2021-04-02 19:07:19 +0000
committerdv <dv@cvs.openbsd.org>2021-04-02 19:07:19 +0000
commitb3c47269c069339a60e3c42fddebaa43a7c0bbd8 (patch)
treecb2f94a8f1fa63564a261290027b6b5c9a53470f /usr.sbin/vmctl
parent97d36f8c6279f349f0df0375d9fc0c60c00b8cbc (diff)
Remove superflouus mmcpy()
Reported by Preben Guldberg. ok mlarkin@
Diffstat (limited to 'usr.sbin/vmctl')
-rw-r--r--usr.sbin/vmctl/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c
index 6eac8eec8b8..1a8460a001a 100644
--- a/usr.sbin/vmctl/main.c
+++ b/usr.sbin/vmctl/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.63 2021/03/26 16:28:15 tb Exp $ */
+/* $OpenBSD: main.c,v 1.64 2021/04/02 19:07:18 dv Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -303,7 +303,6 @@ vmmaction(struct parse_result *res)
else
ret = 0;
if (ret != 0) {
- memcpy(&ret, imsg.data, sizeof(ret));
errno = ret;
err(1, "command failed");
} else