debuggers.hg

changeset 21052:8dada4c897c9

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@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Mar 06 13:31:42 2010 +0000 (2010-03-06)
parents 0d85c05b1554
children 6450dfb7737f
files tools/xenstore/xs_lib.c
line diff
     1.1 --- a/tools/xenstore/xs_lib.c	Sat Mar 06 13:31:03 2010 +0000
     1.2 +++ b/tools/xenstore/xs_lib.c	Sat Mar 06 13:31:42 2010 +0000
     1.3 @@ -149,7 +149,7 @@ bool xs_strings_to_perms(struct xs_permi
     1.4  bool xs_perm_to_string(const struct xs_permissions *perm,
     1.5                         char *buffer, size_t buf_len)
     1.6  {
     1.7 -	switch (perm->perms) {
     1.8 +	switch ((int)perm->perms) {
     1.9  	case XS_PERM_WRITE:
    1.10  		*buffer = 'w';
    1.11  		break;