diff options
author | Anders Svensson <[email protected]> | 2017-08-15 14:34:42 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2017-08-15 14:39:27 +0200 |
commit | d10abde1e0f948400a6f14128b5b54443edbffd3 (patch) | |
tree | f85f0c5fbc4ea46bee81f892d3e52b7ef058ac29 /lib/diameter | |
parent | e693596e7d73ce438659e54b2e5cf72b2e7173f3 (diff) | |
download | otp-d10abde1e0f948400a6f14128b5b54443edbffd3.tar.gz otp-d10abde1e0f948400a6f14128b5b54443edbffd3.tar.bz2 otp-d10abde1e0f948400a6f14128b5b54443edbffd3.zip |
Replace calls to inet_parse(3)
With the documented calls to inet(3).
Diffstat (limited to 'lib/diameter')
-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 8792e97621..1c1ea42cb5 100644 --- a/lib/diameter/src/base/diameter_lib.erl +++ b/lib/diameter/src/base/diameter_lib.erl @@ -283,7 +283,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 dfbf350346..4cb5a57a54 100644 --- a/lib/diameter/src/base/diameter_peer.erl +++ b/lib/diameter/src/base/diameter_peer.erl @@ -202,10 +202,10 @@ match1(Addr, Match) -> match(Addr, {ok, A}, _) -> Addr == A; match(Addr, {error, _}, RE) -> - match == re:run(inet_parse:ntoa(Addr), RE, [{capture, none}, caseless]). + match == re:run(inet:ntoa(Addr), RE, [{capture, none}, caseless]). addr([_|_] = A) -> - inet_parse:address(A); + inet:parse_address(A); addr(A) -> {ok, A}. |