[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix xenstore-client.c compile



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.