[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] A few more gcc4isms


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Paul Larson <pl@xxxxxxxxxx>
  • Date: Fri, 22 Apr 2005 15:00:19 -0500
  • Delivery-date: Fri, 22 Apr 2005 20:00:08 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Here's a couple more gcc4 cleanups.
Signed-off-by: Paul Larson <pl@xxxxxxxxxx>

--- xen-unstable/xen/common/grant_table.c2005-04-21 22:14:31.000000000
-0500
+++ xen-unstable-fix/xen/common/grant_table.c2005-04-22
14:54:34.000000000 -0500@@ -437,7 +437,7 @@ gnttab_map_grant_ref(
     gnttab_map_grant_ref_t *uop, unsigned int count)
 {
     int i, flush = 0;
-    unsigned long va;
+    unsigned long va=0;

     for ( i = 0; i < count; i++ )
         if ( __gnttab_map_grant_ref(&uop[i], &va) == 0 )
@@ -633,7 +633,7 @@ gnttab_unmap_grant_ref(
     gnttab_unmap_grant_ref_t *uop, unsigned int count)
 {
     int i, flush = 0;
-    unsigned long va;
+    unsigned long va=0;

     for ( i = 0; i < count; i++ )
         if ( __gnttab_unmap_grant_ref(&uop[i], &va) == 0 )
-- 
Thanks,
Paul Larson
pl@xxxxxxxxxx
IBM Linux Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.