Skip to contentSkip to conversation

libxc xc_ptrace gcc 4 fix

PATCH New Jerone Young 1 participant 1 message Mar 30, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxc xc_ptrace gcc 4 fix

Variable guest_va is declared as a long* . It takes values that are cast as unsigned long* . GCC 4 picks up on this. This patch changes the declaration of guest va to be an unsigned long* and fixes the problem.

Signature · 4 lines
Jerone Young
IBM Linux Technology Center
[email protected]
512-838-1157 (T/L: 678-1157)
libxc/xc_ptrace.c renamed from libxc/xc_ptrace.c.orig +1 -1
@@ -238,7 +238,7 @@ xc_ptrace(enum __ptrace_request request,
     xc_domaininfo_t info;
     struct gdb_regs pt;
     long retval = 0;
-    long *guest_va;
+    unsigned long *guest_va;
 
     op.interface_version = DOM0_INTERFACE_VERSION;
     

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel