aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/inet_parse.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-06-28 16:11:34 +0200
committerSiri Hansen <[email protected]>2017-07-06 17:53:23 +0200
commitabb8e79663d0527f2987d1d7e914c65117b396a9 (patch)
treefa896b44cc0e208afa6d7c7ee9a16d8f2c835095 /lib/kernel/src/inet_parse.erl
parente2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7 (diff)
downloadotp-abb8e79663d0527f2987d1d7e914c65117b396a9.tar.gz
otp-abb8e79663d0527f2987d1d7e914c65117b396a9.tar.bz2
otp-abb8e79663d0527f2987d1d7e914c65117b396a9.zip
kernel: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/kernel/src/inet_parse.erl')
-rw-r--r--lib/kernel/src/inet_parse.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/inet_parse.erl b/lib/kernel/src/inet_parse.erl
index 29804dc50b..e9685c6554 100644
--- a/lib/kernel/src/inet_parse.erl
+++ b/lib/kernel/src/inet_parse.erl
@@ -95,7 +95,7 @@ hosts(Fname,File) ->
%% interface with a %if suffix. These kind of
%% addresses maybe need to be gracefully handled
%% throughout inet* and inet_drv.
- case string:tokens(Address, "%") of
+ case string:lexemes(Address, "%") of
[Addr,_] ->
{ok,_} = address(Addr),
skip;
@@ -407,7 +407,7 @@ is_dom1([C | Cs]) when C >= $a, C =< $z -> is_dom_ldh(Cs);
is_dom1([C | Cs]) when C >= $A, C =< $Z -> is_dom_ldh(Cs);
is_dom1([C | Cs]) when C >= $0, C =< $9 ->
case is_dom_ldh(Cs) of
- true -> is_dom2(string:tokens([C | Cs],"."));
+ true -> is_dom2(string:lexemes([C | Cs],"."));
false -> false
end;
is_dom1(_) -> false.