diff options
author | Anders Svensson <[email protected]> | 2015-07-10 16:44:03 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2015-08-04 18:57:04 +0200 |
commit | 1a90f86927dba2f22cff6e3703c76415da05d667 (patch) | |
tree | 0ef0cf892918a95de3ec5c0a1a591cd744d1b8ef /lib/diameter/src | |
parent | f3fefbae24a2569a13b538d80d0e99129963ebef (diff) | |
download | otp-1a90f86927dba2f22cff6e3703c76415da05d667.tar.gz otp-1a90f86927dba2f22cff6e3703c76415da05d667.tar.bz2 otp-1a90f86927dba2f22cff6e3703c76415da05d667.zip |
Replace calls to module inet_parse to equivalents in inet
Commits b563c796 (R16B) and 0fad6449 (R16B02) added parse_address/1 and
ntoa/1 to module inet, providing documented alternatives to address/1
and ntoa/1 in the undocumented (save comments in inet(3)) inet_parse.
Diffstat (limited to 'lib/diameter/src')
-rw-r--r-- | lib/diameter/src/base/diameter_lib.erl | 2 | ||||
-rw-r--r-- | lib/diameter/src/base/diameter_peer.erl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/diameter/src/base/diameter_lib.erl b/lib/diameter/src/base/diameter_lib.erl index 3f327f3653..b9b3e21788 100644 --- a/lib/diameter/src/base/diameter_lib.erl +++ b/lib/diameter/src/base/diameter_lib.erl @@ -321,7 +321,7 @@ ip(T) %% Or not: convert from '.'/':'-separated decimal/hex. ip(Addr) -> - {ok, A} = inet_parse:address(Addr), %% documented in inet(3) + {ok, A} = inet:parse_address(Addr), A. %% --------------------------------------------------------------------------- diff --git a/lib/diameter/src/base/diameter_peer.erl b/lib/diameter/src/base/diameter_peer.erl index 89b63c8a92..95c0c65029 100644 --- a/lib/diameter/src/base/diameter_peer.erl +++ b/lib/diameter/src/base/diameter_peer.erl @@ -201,10 +201,10 @@ match1(Addr, Match) -> match(Addr, {ok, A}, _) -> Addr == A; match(Addr, {error, _}, RE) -> - match == re:run(inet_parse:ntoa(Addr), RE, [{capture, none}]). + match == re:run(inet:ntoa(Addr), RE, [{capture, none}]). addr([_|_] = A) -> - inet_parse:address(A); + inet:parse_address(A); addr(A) -> {ok, A}. |