diff options
author | Hans Bolinder <hasse@erlang.org> | 2011-06-28 14:00:10 +0200 |
---|---|---|
committer | Hans Bolinder <hasse@erlang.org> | 2011-08-25 15:37:11 +0200 |
commit | c6f772a04eafccf03d20b0bbda08c399b4640f38 (patch) | |
tree | 2f874162ed8ff7cd9d10d9472d7b771862d20eed /lib/kernel/src/inet_res.erl | |
parent | d48eaa0731017e5cdadca0af77ac14cd949b6c67 (diff) | |
download | erlang-c6f772a04eafccf03d20b0bbda08c399b4640f38.tar.gz |
Improve types and specifications of the inet modules
Diffstat (limited to 'lib/kernel/src/inet_res.erl')
-rw-r--r-- | lib/kernel/src/inet_res.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/inet_res.erl b/lib/kernel/src/inet_res.erl index d1f5644ff7..59ba408d7a 100644 --- a/lib/kernel/src/inet_res.erl +++ b/lib/kernel/src/inet_res.erl @@ -407,7 +407,7 @@ gethostbyname(Name) -> -spec gethostbyname(Name, Family) -> {ok, Hostent} | {error, Reason} when Name :: dns_name(), Hostent :: inet:hostent(), - Family :: inet:family_option(), + Family :: inet:address_family(), Reason :: inet:posix() | res_error(). gethostbyname(Name,Family) -> @@ -418,7 +418,7 @@ gethostbyname(Name,Family) -> Name :: dns_name(), Hostent :: inet:hostent(), Timeout :: timeout(), - Family :: inet:family_option(), + Family :: inet:address_family(), Reason :: inet:posix() | res_error(). gethostbyname(Name,Family,Timeout) -> |