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-unstable] xenstore: Resolve gcc4.5 type error

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xenstore: Resolve gcc4.5 type error
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 06 Mar 2010 05:35:19 -0800
Delivery-date: Sat, 06 Mar 2010 05:36:30 -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 1267882302 0
# Node ID 8dada4c897c9c5de39bcd9351cbee6fe7aadab5a
# Parent  0d85c05b1554ac1fcfd3798315349e84cf259caa
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>
---
 tools/xenstore/xs_lib.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 0d85c05b1554 -r 8dada4c897c9 tools/xenstore/xs_lib.c
--- a/tools/xenstore/xs_lib.c   Sat Mar 06 13:31:03 2010 +0000
+++ b/tools/xenstore/xs_lib.c   Sat Mar 06 13:31:42 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-unstable] xenstore: Resolve gcc4.5 type error, Xen patchbot-unstable <=