From: john.levon@Sun.COM Subject: [PATCH] Fix xenstore-client.c compile Date: Wed, 30 Apr 2008 05:54:54 -0700 Message-ID: <2838606c439eba685f8b.1209560094@xenbld> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User john.levon@sun.com # Date 1209521786 25200 # Node ID 2838606c439eba685f8b791ceb5d1b0e84bc7e9e # Parent c4902db497fc7e6fbee16633b9f09bbd28239bc4 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 diff --git a/tools/xenstore/xenstore_client.c b/tools/xenstore/xenstore_client.c --- a/tools/xenstore/xenstore_client.c +++ b/tools/xenstore/xenstore_client.c @@ -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