WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.4-testing] xenstore: Resolve gcc4.5 type error

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] xenstore: Resolve gcc4.5 type error
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 09 Mar 2010 10:25:27 -0800
Delivery-date: Tue, 09 Mar 2010 10:26:25 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=