aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/erl_reply.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/erl_reply.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/erl_reply.erl')
-rw-r--r--lib/kernel/src/erl_reply.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/erl_reply.erl b/lib/kernel/src/erl_reply.erl
index e1e046cbb4..e1c4ffe839 100644
--- a/lib/kernel/src/erl_reply.erl
+++ b/lib/kernel/src/erl_reply.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2016. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2017. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@ reply(_) ->
%% convert ip number to tuple
ip_string_to_tuple(Ip) ->
- [Ip1,Ip2,Ip3,Ip4] = string:tokens(Ip,"."),
+ [Ip1,Ip2,Ip3,Ip4] = string:lexemes(Ip,"."),
{list_to_integer(Ip1),
list_to_integer(Ip2),
list_to_integer(Ip3),