From 3f6cbacc41f22300259877ea7c4e8af734bc909e Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Wed, 10 Feb 2016 21:29:41 +0000 Subject: [PATCH] authd: fix link failure in random_socket The random_socket function isn't used, and the code can only be compiled if the function is optimised away (because it's static and unused) otherwise it will fail to link when "ipv4_addr" and "ipv6_addr" are not found. Fix this by modifying ipv4_addr and ipv6_addr so that they're not external variables. --- authd/res.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authd/res.c b/authd/res.c index 59071b3f1..acf605bb9 100644 --- a/authd/res.c +++ b/authd/res.c @@ -62,9 +62,9 @@ static PF res_readreply; #define ANSWER_FIXED_SIZE (TYPE_SIZE + CLASS_SIZE + TTL_SIZE + RDLENGTH_SIZE) #ifdef RB_IPV6 -extern struct in6_addr ipv6_addr; +struct in6_addr ipv6_addr; #endif -extern struct in_addr ipv4_addr; +struct in_addr ipv4_addr; struct reslist {