diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-05-19 20:38:29 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-05-23 16:44:46 +0200 |
commit | 1ec1c66f203f2ace5124996e1d765d58fc925ce0 (patch) | |
tree | f2ce054baf5fcbdf1fbbc2783e42a8a5d2965f1d /system.h | |
parent | 9936bbfb3c8f6e39a3bc1f2418180caaca476aaa (diff) |
system: fix typo in returning address length.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'system.h')
-rw-r--r-- | system.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |