Commit 23757553 authored by Pekka Pessi's avatar Pekka Pessi

Fixed prototype of host_is_domain().

darcs-hash:20060427095355-65a35-7dad2ce342f5c8aceedfec2233d814ea5a9e8261.gz
parent 5d1ac738
......@@ -708,7 +708,7 @@ int host_is_ip_address(char const *string)
* toplabel = ALPHA / ALPHA *( alphanum / "-" ) alphanum
* @endcode
*/
int host_is_domain(char *string)
int host_is_domain(char const *string)
{
int n = string ? span_domain(string) : 0;
return string && n > 0 && string[n] == '\0';
......
......@@ -45,7 +45,7 @@ SOFIAPUBFUN int host_is_ip4_address(char const *string);
SOFIAPUBFUN int host_is_ip6_address(char const *string);
SOFIAPUBFUN int host_ip6_reference(char const *string);
SOFIAPUBFUN int host_is_ip_address(char const *string);
SOFIAPUBFUN int host_is_domain(char *string);
SOFIAPUBFUN int host_is_domain(char const *string);
SOFIAPUBFUN int host_is_valid(char const *string);
SOFIAPUBFUN int host_has_domain_invalid(char const *string);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment