diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2022-05-13 00:17:21 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2022-05-13 00:17:21 +0000 |
commit | 09dd1623827bdcf7431f9189efb873114555c6ae (patch) | |
tree | bfa4886557a7aae9218877c1bcea9358445c2873 /usr.sbin/vmctl/main.c | |
parent | 3446a8236fe5c611a53d6a8dfb830ff72989c63d (diff) |
Follow the recent change that the unit of `imgsize' argument of
create_imagefile() became MB. Also change the arguement's type from
long to uint64_t that is preferred.
ok dv
Diffstat (limited to 'usr.sbin/vmctl/main.c')
-rw-r--r-- | usr.sbin/vmctl/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c index d5b7f937414..c244d8c142c 100644 --- a/usr.sbin/vmctl/main.c +++ b/usr.sbin/vmctl/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.70 2022/05/04 23:17:25 dv Exp $ */ +/* $OpenBSD: main.c,v 1.71 2022/05/13 00:17:20 yasuoka Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -660,9 +660,8 @@ ctl_convert(const char *srcfile, const char *dstfile, int dsttype, size_t dstsiz /* align to megabytes */ dst.size = ALIGNSZ(dstsize, 1048576); - if ((ret = create_imagefile(dst.type, dst.disk, NULL, - dst.size / 1048576, &format)) != 0) { - errno = ret; + if ((ret = create_imagefile(dst.type, dst.disk, NULL, dst.size, + &format)) != 0) { errstr = "failed to create destination image file"; goto done; } |