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 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64] Clean up build warnings

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Clean up build warnings
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Jan 2007 21:10:46 -0800
Delivery-date: Thu, 18 Jan 2007 21:50:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1168450661 25200
# Node ID 91be8436952d82eacd7e0db3aece8858c3a53150
# Parent  b11e75e65f90440d3d9ddd98c3f9dece32d5efe6
[IA64] Clean up build warnings

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
 xen/arch/ia64/linux-xen/cmdline.c |   10 ++++++++++
 1 files changed, 10 insertions(+)

diff -r b11e75e65f90 -r 91be8436952d xen/arch/ia64/linux-xen/cmdline.c
--- a/xen/arch/ia64/linux-xen/cmdline.c Wed Jan 10 10:35:24 2007 -0700
+++ b/xen/arch/ia64/linux-xen/cmdline.c Wed Jan 10 10:37:41 2007 -0700
@@ -15,7 +15,9 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
+#ifdef XEN
 #include <xen/lib.h>
+#endif
 
 
 /**
@@ -38,7 +40,11 @@ int get_option (char **str, int *pint)
 
        if (!cur || !(*cur))
                return 0;
+#ifndef XEN
        *pint = simple_strtol (cur, str, 0);
+#else
+       *pint = simple_strtol (cur, (const char**)str, 0);
+#endif
        if (cur == *str)
                return 0;
        if (**str == ',') {
@@ -96,7 +102,11 @@ char *get_options(const char *str, int n
 
 unsigned long long memparse (char *ptr, char **retptr)
 {
+#ifndef XEN
        unsigned long long ret = simple_strtoull (ptr, retptr, 0);
+#else
+       unsigned long long ret = simple_strtoull (ptr, (const char**)retptr, 0);
+#endif
 
        switch (**retptr) {
        case 'G':

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Clean up build warnings, Xen patchbot-unstable <=