[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xenstore: Resolve gcc4.5 type error
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1267882302 0 # Node ID 8dada4c897c9c5de39bcd9351cbee6fe7aadab5a # Parent 0d85c05b1554ac1fcfd3798315349e84cf259caa xenstore: Resolve gcc4.5 type error Without this, gcc 4.5 complains with, error: case value '3' not in enumerated type 'const enum xs_perm_type' Signed-off-by: Charles Arnold <carnold@xxxxxxxxxx> --- tools/xenstore/xs_lib.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 0d85c05b1554 -r 8dada4c897c9 tools/xenstore/xs_lib.c --- a/tools/xenstore/xs_lib.c Sat Mar 06 13:31:03 2010 +0000 +++ b/tools/xenstore/xs_lib.c Sat Mar 06 13:31:42 2010 +0000 @@ -149,7 +149,7 @@ bool xs_perm_to_string(const struct xs_p bool xs_perm_to_string(const struct xs_permissions *perm, char *buffer, size_t buf_len) { - switch (perm->perms) { + switch ((int)perm->perms) { case XS_PERM_WRITE: *buffer = 'w'; break; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |