diff options
-rw-r--r-- | tools/xenstore/xs_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenstore/xs_lib.c b/tools/xenstore/xs_lib.c index 45ca5df402..03a9ee4393 100644 --- a/tools/xenstore/xs_lib.c +++ b/tools/xenstore/xs_lib.c @@ -149,7 +149,7 @@ bool xs_strings_to_perms(struct xs_permissions *perms, unsigned int num, 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; |