diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-03-06 13:31:42 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-03-06 13:31:42 +0000 |
commit | e0c77842c74c206a664bb090f0017f0d65340c06 (patch) | |
tree | 2e39341e7ad80e98bae573f1ba57edff11216e79 /tools/xenstore | |
parent | 14d41371e239d390aebd65582aa0ab4fed4934cd (diff) | |
download | xen-e0c77842c74c206a664bb090f0017f0d65340c06.tar.gz xen-e0c77842c74c206a664bb090f0017f0d65340c06.tar.bz2 xen-e0c77842c74c206a664bb090f0017f0d65340c06.zip |
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>
Diffstat (limited to 'tools/xenstore')
-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; |