0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 06:51:08 +01:00

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.
This commit is contained in:
Simon Arlott 2016-02-10 21:29:41 +00:00
parent 1579e155b1
commit 3f6cbacc41
No known key found for this signature in database
GPG key ID: BAFFFF5FF5FFAAAF

View file

@ -62,9 +62,9 @@ static PF res_readreply;
#define ANSWER_FIXED_SIZE (TYPE_SIZE + CLASS_SIZE + TTL_SIZE + RDLENGTH_SIZE) #define ANSWER_FIXED_SIZE (TYPE_SIZE + CLASS_SIZE + TTL_SIZE + RDLENGTH_SIZE)
#ifdef RB_IPV6 #ifdef RB_IPV6
extern struct in6_addr ipv6_addr; struct in6_addr ipv6_addr;
#endif #endif
extern struct in_addr ipv4_addr; struct in_addr ipv4_addr;
struct reslist struct reslist
{ {