# HG changeset patch
# User Jimi Xenidis <[EMAIL PROTECTED]>
# Node ID da9637bef06ae6b7d72dc7a1cbcff11276395df3
# Parent  697bd866535ba6d73de5fc6c988e96bc034bbdd0
[POWERPC] fix get the "sign" for the ft_* interfaces
---
 tools/libxc/powerpc64/ft_build.c |    9 +++++----
 tools/libxc/powerpc64/ft_build.h |   12 +++++++-----
 2 files changed, 12 insertions(+), 9 deletions(-)

diff -r 697bd866535b -r da9637bef06a tools/libxc/powerpc64/ft_build.c
--- a/tools/libxc/powerpc64/ft_build.c  Thu Aug 17 16:21:34 2006 -0400
+++ b/tools/libxc/powerpc64/ft_build.c  Thu Aug 17 17:58:07 2006 -0400
@@ -90,7 +90,8 @@ static int lookup_string(struct ft_cxt *
        return -1;
 }
 
-void ft_prop(struct ft_cxt *cxt, const char *name, const void *data, int sz)
+void ft_prop(struct ft_cxt *cxt, const char *name,
+             const void *data, unsigned int sz)
 {
        int len, off;
 
@@ -125,7 +126,7 @@ void ft_prop_str(struct ft_cxt *cxt, con
        ft_prop(cxt, name, str, strlen(str) + 1);
 }
 
-void ft_prop_int(struct ft_cxt *cxt, const char *name, int val)
+void ft_prop_int(struct ft_cxt *cxt, const char *name, unsigned int val)
 {
        u32 v = cpu_to_be32((u32) val);
 
@@ -133,7 +134,7 @@ void ft_prop_int(struct ft_cxt *cxt, con
 }
 
 /* start construction of the flat OF tree */
-void ft_begin(struct ft_cxt *cxt, void *blob, int max_size)
+void ft_begin(struct ft_cxt *cxt, void *blob, unsigned int max_size)
 {
        struct boot_param_header *bph = blob;
        u32 off;
@@ -464,7 +465,7 @@ void ft_merge_blob(struct ft_cxt *cxt, v
        }
 }
 
-void *ft_get_prop(void *bphp, const char *propname, int *szp)
+void *ft_get_prop(void *bphp, const char *propname, unsigned int *szp)
 {
        struct boot_param_header *bph = bphp;
        u32 *p_struct =
diff -r 697bd866535b -r da9637bef06a tools/libxc/powerpc64/ft_build.h
--- a/tools/libxc/powerpc64/ft_build.h  Thu Aug 17 16:21:34 2006 -0400
+++ b/tools/libxc/powerpc64/ft_build.h  Thu Aug 17 17:58:07 2006 -0400
@@ -106,15 +106,17 @@ int ft_end_tree(struct ft_cxt *cxt);
 int ft_end_tree(struct ft_cxt *cxt);
 
 void ft_nop(struct ft_cxt *cxt);
-void ft_prop(struct ft_cxt *cxt, const char *name, const void *data, int sz);
+void ft_prop(struct ft_cxt *cxt, const char *name,
+             const void *data, unsigned int sz);
 void ft_prop_str(struct ft_cxt *cxt, const char *name, const char *str);
-void ft_prop_int(struct ft_cxt *cxt, const char *name, int val);
-void ft_begin(struct ft_cxt *cxt, void *blob, int max_size);
+void ft_prop_int(struct ft_cxt *cxt, const char *name, unsigned int val);
+void ft_begin(struct ft_cxt *cxt, void *blob, unsigned int max_size);
 void ft_add_rsvmap(struct ft_cxt *cxt, u64 physaddr, u64 size);
 
 void ft_dump_blob(const void *bphp);
 void ft_merge_blob(struct ft_cxt *cxt, void *blob);
-void *ft_get_prop(void *bphp, const char *propname, int *szp);
-void ft_set_prop(void *bphp, const char *propname, void *val, int len);
+void *ft_get_prop(void *bphp, const char *propname, unsigned int *szp);
+void ft_set_prop(void *bphp, const char *propname,
+                 void *val, unsigned int len);
 
 #endif

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

Reply via email to