From f71793a4f0ffe09e9f950cb9114cad7c102e5b9c Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 22 Aug 2016 22:20:47 +0100 Subject: [PATCH] data types: move variable declaration from header to .c file And make the variable shared. --- net.c | 1 + net.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/net.c b/net.c index 964f508..065b5a9 100644 --- a/net.c +++ b/net.c @@ -183,6 +183,7 @@ int sendsock6_udp; int recvsock6; int sendsock; int recvsock; +ip_t unspec_addr; #ifdef ENABLE_IPV6 struct sockaddr_storage sourcesockaddr_struct; diff --git a/net.h b/net.h index 0499b6c..3e05e6b 100644 --- a/net.h +++ b/net.h @@ -120,7 +120,7 @@ extern int fld_index[]; extern unsigned char fld_active[]; extern char available_options[]; -ip_t unspec_addr; +extern ip_t unspec_addr; /* MPLS label object */ struct mplslen { -- 2.47.2