summaryrefslogtreecommitdiff
path: root/usr.sbin/vmctl/main.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2018-11-26 10:39:31 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2018-11-26 10:39:31 +0000
commitf3955aae333e097afa317635834fba91744cc973 (patch)
tree439592930316be8e10cb911a8d5f5dea3ace9cc7 /usr.sbin/vmctl/main.c
parent21660a2650ecb690158fc50421bb139fc92fafce (diff)
Move the {qcow2,raw} create functions from vmctl into vmd/vio{qcow2,raw}.c
This way they are in the appropriate place and code can be shared with vmd. Ok ori@ mlarkin@ ccardenas@
Diffstat (limited to 'usr.sbin/vmctl/main.c')
-rw-r--r--usr.sbin/vmctl/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c
index da84b5d9e5a..d0efcaf3c8c 100644
--- a/usr.sbin/vmctl/main.c
+++ b/usr.sbin/vmctl/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.47 2018/10/19 10:12:39 reyk Exp $ */
+/* $OpenBSD: main.c,v 1.48 2018/11/26 10:39:30 reyk Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -658,7 +658,7 @@ ctl_convert(const char *srcfile, const char *dstfile, int dsttype, size_t dstsiz
}
/* align to megabytes */
- dst.size = ALIGN(dstsize, 1048576);
+ dst.size = ALIGNSZ(dstsize, 1048576);
if ((ret = create_imagefile(dst.type, dst.disk, NULL,
dst.size / 1048576, &format)) != 0) {