changeset 503:56f2bffbde39

* include/dns_impl.inl (setdomainname): define with const name argument. * include/dns.h: Ditto.
author jlarmour
date Sat, 18 Jan 2003 04:18:48 +0000
parents b43ec5f18a97
children 43dbc9753e8f
files packages/net/ns/dns/current/ChangeLog packages/net/ns/dns/current/include/dns.h packages/net/ns/dns/current/include/dns_impl.inl
diffstat 3 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/ns/dns/current/ChangeLog
+++ b/packages/net/ns/dns/current/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-18  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* include/dns_impl.inl (setdomainname): define with const name
+	argument.
+	* include/dns.h: Ditto.
+
 2003-01-10  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* cdl/dns.cdl: Added the ability to hard code a domain name.
--- a/packages/net/ns/dns/current/include/dns.h
+++ b/packages/net/ns/dns/current/include/dns.h
@@ -57,7 +57,7 @@
 /* Initialise the DNS client with the address of the server */
 externC int cyg_dns_res_init(struct in_addr *dns_server);
 externC int getdomainname(char *name, size_t len);
-externC int setdomainname(char *name, size_t len);
+externC int setdomainname(const char *name, size_t len);
 #endif
 
 // Host name / IP mapping
--- a/packages/net/ns/dns/current/include/dns_impl.inl
+++ b/packages/net/ns/dns/current/include/dns_impl.inl
@@ -523,7 +523,7 @@ gethostbyname(const char * hostname)
 
 /* Set the domain names, as used by the DNS server */
 int
-setdomainname(char *name, size_t len)
+setdomainname(const char *name, size_t len)
 {
     char * ptr;