WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH]Fix wrong data type in xc_save.c

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]Fix wrong data type in xc_save.c
From: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
Date: 2008年9月17日 20:53:18 +0800
Delivery-date: 2008年9月17日 05:53:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH]Fix wrong data type in xc_save.c, Zhigang Wang <=
Previous by Date: [Xen-devel] Megaraid SAS driver failing in Xen-3.3.0 but was working in Xen-3.2.2-rc3 , Kumar, Venkat
Next by Date: RE: [Xen-devel] Re: [PATCH 1/4] CPU online/offline support in Xen , Ke, Liping
Previous by Thread: [Xen-devel] Megaraid SAS driver failing in Xen-3.3.0 but was working in Xen-3.2.2-rc3 , Kumar, Venkat
Next by Thread: [Xen-devel] [ANNOUNCE] Xen 3.2.2 released , Keir Fraser
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /