debuggers.hg
changeset 17593:ac0900c43fd7
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@sun.com>
errx() is not necessarily defined as a never-returns function. Fix
lookup_mode() to account for this.
Signed-off-by: John Levon <john.levon@sun.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Thu May 01 16:37:28 2008 +0100 (2008-05-01) |
parents | acdc1814d29b |
children | 8ccaf43782bd |
files | tools/xenstore/xenstore_client.c |
line diff
1.1 --- a/tools/xenstore/xenstore_client.c Thu May 01 16:36:58 2008 +0100 1.2 +++ b/tools/xenstore/xenstore_client.c Thu May 01 16:37:28 2008 +0100 1.3 @@ -450,8 +450,9 @@ static enum mode lookup_mode(const char 1.4 return MODE_write; 1.5 else if (strcmp(m, "read") == 0) 1.6 return MODE_read; 1.7 - else 1.8 - errx(1, "unknown mode %s\n", m); 1.9 + 1.10 + errx(1, "unknown mode %s\n", m); 1.11 + return 0; 1.12 } 1.13 1.14 int