Browse Source

nameserver should be static

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
f44969f7df
2 changed files with 1 additions and 3 deletions
  1. 0
    2
      src/include/gpxe/dns.h
  2. 1
    1
      src/net/udp/dns.c

+ 0
- 2
src/include/gpxe/dns.h View File

87
 	struct dns_rr_info_cname cname;
87
 	struct dns_rr_info_cname cname;
88
 };
88
 };
89
 
89
 
90
-extern struct sockaddr_tcpip nameserver;
91
-
92
 #endif /* _GPXE_DNS_H */
90
 #endif /* _GPXE_DNS_H */

+ 1
- 1
src/net/udp/dns.c View File

40
  */
40
  */
41
 
41
 
42
 /** The DNS server */
42
 /** The DNS server */
43
-struct sockaddr_tcpip nameserver = {
43
+static struct sockaddr_tcpip nameserver = {
44
 	.st_port = htons ( DNS_PORT ),
44
 	.st_port = htons ( DNS_PORT ),
45
 };
45
 };
46
 
46
 

Loading…
Cancel
Save