From f44969f7df1b61c34fde47250a0d27e7ab58803d Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 17 Jul 2007 01:21:20 +0100 Subject: [PATCH] nameserver should be static --- src/include/gpxe/dns.h | 2 -- src/net/udp/dns.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/include/gpxe/dns.h b/src/include/gpxe/dns.h index f2249da2..3e3cff1b 100644 --- a/src/include/gpxe/dns.h +++ b/src/include/gpxe/dns.h @@ -87,6 +87,4 @@ union dns_rr_info { struct dns_rr_info_cname cname; }; -extern struct sockaddr_tcpip nameserver; - #endif /* _GPXE_DNS_H */ diff --git a/src/net/udp/dns.c b/src/net/udp/dns.c index 2dac8ee9..b141eea4 100644 --- a/src/net/udp/dns.c +++ b/src/net/udp/dns.c @@ -40,7 +40,7 @@ */ /** The DNS server */ -struct sockaddr_tcpip nameserver = { +static struct sockaddr_tcpip nameserver = { .st_port = htons ( DNS_PORT ), };