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] Fix xenstore-client.c compile

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix xenstore-client.c compile
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 01 May 2008 08:50:10 -0700
Delivery-date: Thu, 01 May 2008 09:03:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 1209656248 -3600
# Node ID ac0900c43fd7e24b7aa945948f91c6fbc45f439a
# Parent  acdc1814d29b3ff05ea7093f06851edb31e06ad3
Fix xenstore-client.c compile

errx() is not necessarily defined as a never-returns function. Fix
lookup_mode() to account for this.

Signed-off-by: John Levon <john.levon@xxxxxxx>
---
 tools/xenstore/xenstore_client.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r acdc1814d29b -r ac0900c43fd7 tools/xenstore/xenstore_client.c
--- a/tools/xenstore/xenstore_client.c  Thu May 01 16:36:58 2008 +0100
+++ b/tools/xenstore/xenstore_client.c  Thu May 01 16:37:28 2008 +0100
@@ -450,8 +450,9 @@ static enum mode lookup_mode(const char 
        return MODE_write;
     else if (strcmp(m, "read") == 0)
        return MODE_read;
-    else
-       errx(1, "unknown mode %s\n", m);
+
+    errx(1, "unknown mode %s\n", m);
+    return 0;
 }
 
 int

_______________________________________________
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] Fix xenstore-client.c compile, Xen patchbot-unstable <=