From: Daniel Lezcano Date: Mon, 7 Jun 2010 12:31:56 +0000 (+0200) Subject: fix return code X-Git-Tag: lxc-0.7.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ddc8f2451f714659aa9d1ba720a34a525926be5;p=thirdparty%2Flxc.git fix return code Return a negative instead of a positive value. Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/network.c b/src/lxc/network.c index 6cd5b87d3..b691dd6a5 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -746,7 +746,7 @@ static int ip_addr_add(int family, int ifindex, goto out; /* TODO : multicast, anycast with ipv6 */ - err = EPROTONOSUPPORT; + err = -EPROTONOSUPPORT; if (family == AF_INET6 && (memcmp(bcast, &in6addr_any, sizeof(in6addr_any)) || memcmp(acast, &in6addr_any, sizeof(in6addr_any))))