]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
nameserver should be static
authorMichael Brown <mcb30@etherboot.org>
Tue, 17 Jul 2007 00:21:20 +0000 (01:21 +0100)
committerMichael Brown <mcb30@etherboot.org>
Tue, 17 Jul 2007 00:21:20 +0000 (01:21 +0100)
src/include/gpxe/dns.h
src/net/udp/dns.c

index f2249da254c513d51aa09ad394dbaf03253741d6..3e3cff1bc490494979e4e7a32d941ba5848f9008 100644 (file)
@@ -87,6 +87,4 @@ union dns_rr_info {
        struct dns_rr_info_cname cname;
 };
 
-extern struct sockaddr_tcpip nameserver;
-
 #endif /* _GPXE_DNS_H */
index 2dac8ee95f10a80a35668942c6869a1b520e2940..b141eea422231360c5fa3ad0116a7fd3528e874d 100644 (file)
@@ -40,7 +40,7 @@
  */
 
 /** The DNS server */
-struct sockaddr_tcpip nameserver = {
+static struct sockaddr_tcpip nameserver = {
        .st_port = htons ( DNS_PORT ),
 };