|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.4-testing] xenstore: Resolve gcc4.5 type error
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1268158356 0
# Node ID 70c3ccb34e5185cc816b6c733c0be639f14ba362
# Parent 61623562ecbd0eca2eaf6143edf22613dc6900b5
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>
xen-unstable changeset: 21006:8dada4c897c9
xen-unstable date: Sat Mar 06 13:31:42 2010 +0000
---
tools/xenstore/xs_lib.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 61623562ecbd -r 70c3ccb34e51 tools/xenstore/xs_lib.c
--- a/tools/xenstore/xs_lib.c Tue Mar 09 18:11:56 2010 +0000
+++ b/tools/xenstore/xs_lib.c Tue Mar 09 18:12:36 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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-3.4-testing] xenstore: Resolve gcc4.5 type error,
Xen patchbot-3.4-testing <=
|
|
|
|
|