aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_peer.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-07-10 16:44:03 +0200
committerAnders Svensson <[email protected]>2015-08-04 18:57:04 +0200
commit1a90f86927dba2f22cff6e3703c76415da05d667 (patch)
tree0ef0cf892918a95de3ec5c0a1a591cd744d1b8ef /lib/diameter/src/base/diameter_peer.erl
parentf3fefbae24a2569a13b538d80d0e99129963ebef (diff)
downloadotp-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/base/diameter_peer.erl')
-rw-r--r--lib/diameter/src/base/diameter_peer.erl4
1 files changed, 2 insertions, 2 deletions
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}.