]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
data types: move variable declaration from header to .c file
authorSami Kerola <kerolasa@iki.fi>
Mon, 22 Aug 2016 21:20:47 +0000 (22:20 +0100)
committerSami Kerola <kerolasa@iki.fi>
Wed, 24 Aug 2016 20:25:09 +0000 (21:25 +0100)
And make the variable shared.

net.c
net.h

diff --git a/net.c b/net.c
index 964f50833005376330057289a326ead5b816b68d..065b5a90949151c1935432fdcf915f6746ef8e02 100644 (file)
--- 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 0499b6c7c642ce3fbcaa33e0ec28499ad630eb41..3e05e6be7e2049d7ea43e005d31eb2c3db2ef7c0 100644 (file)
--- 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 {