diff -r b8d2a4134a68 tools/xenstore/xs_lib.c --- a/tools/xenstore/xs_lib.c Wed Mar 03 17:41:58 2010 +0000 +++ b/tools/xenstore/xs_lib.c Thu Mar 04 14:06:49 2010 -0700 @@ -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;