[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] Clean up build warnings
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |