* [PATCH]Fix wrong data type in xc_save.c
@ 2008-09-17 12:53 Zhigang Wang
0 siblings, 0 replies; only message in thread
From: Zhigang Wang @ 2008-09-17 12:53 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 183 bytes --]
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@oracle.com>
[-- Attachment #2: xen-xc-save.patch --]
[-- Type: text/x-patch, Size: 499 bytes --]
--- 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]);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-17 12:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-17 12:53 [PATCH]Fix wrong data type in xc_save.c Zhigang Wang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.