aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/inet_res.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2011-06-28 14:00:10 +0200
committerHans Bolinder <[email protected]>2011-08-25 15:37:11 +0200
commitc6f772a04eafccf03d20b0bbda08c399b4640f38 (patch)
tree2f874162ed8ff7cd9d10d9472d7b771862d20eed /lib/kernel/src/inet_res.erl
parentd48eaa0731017e5cdadca0af77ac14cd949b6c67 (diff)
downloadotp-c6f772a04eafccf03d20b0bbda08c399b4640f38.tar.gz
otp-c6f772a04eafccf03d20b0bbda08c399b4640f38.tar.bz2
otp-c6f772a04eafccf03d20b0bbda08c399b4640f38.zip
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.erl4
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) ->