Fix wrong data type in xc_save.c. xc_interface_open() may return -1, if we
define xc_fd as unsigned int, then -1 will be > 0.
Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
--- xen-unstable/tools/xcutils/xc_save.c 2008-09-10 01:02:42.000000000
+0800
+++ xen-unstable.local/tools/xcutils/xc_save.c 2008-09-17 17:41:42.000000000
+0800
@@ -297,8 +297,8 @@ static void *init_qemu_maps(int domid, u
int
main(int argc, char **argv)
{
- unsigned int xc_fd, io_fd, domid, maxit, max_f, flags;
- int ret;
+ unsigned int domid, maxit, max_f, flags;
+ int xc_fd, io_fd, ret;
if (argc != 6)
errx(1, "usage: %s iofd domid maxit maxf flags", argv[0]);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|