From: Yousong Zhou Date: Tue, 19 May 2015 12:38:29 +0000 (+0800) Subject: system: fix typo in returning address length. X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=1ec1c66f203f2ace5124996e1d765d58fc925ce0 system: fix typo in returning address length. Signed-off-by: Yousong Zhou --- diff --git a/system.h b/system.h index 94e0dd9..382c907 100644 --- a/system.h +++ b/system.h @@ -91,7 +91,7 @@ static inline int system_get_addr_family(unsigned int flags) static inline int system_get_addr_len(unsigned int flags) { - if ((flags & DEVADDR_FAMILY) == DEVADDR_INET6) + if ((flags & DEVADDR_FAMILY) != DEVADDR_INET6) return sizeof(struct in_addr); else return sizeof(struct in6_addr);