aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/inet_dns.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_dns.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_dns.erl')
-rw-r--r--lib/kernel/src/inet_dns.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/inet_dns.erl b/lib/kernel/src/inet_dns.erl
index d5f982cc51..f1f58bc872 100644
--- a/lib/kernel/src/inet_dns.erl
+++ b/lib/kernel/src/inet_dns.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.
@@ -29,7 +29,7 @@
-export([decode/1, encode/1]).
--import(lists, [reverse/1, reverse/2, nthtail/2]).
+-import(lists, [reverse/1]).
-include("inet_int.hrl").
-include("inet_dns.hrl").
@@ -473,7 +473,7 @@ decode_data(<<Order:16,Preference:16,Data0/binary>>, _, ?S_NAPTR, Buffer) ->
{Data2,Services} = decode_string(Data1),
{Data,Regexp} = decode_characters(Data2, utf8),
Replacement = decode_domain(Data, Buffer),
- {Order,Preference,string:to_lower(Flags),string:to_lower(Services),
+ {Order,Preference,string:lowercase(Flags),string:lowercase(Services),
Regexp,Replacement};
%% ?S_OPT falls through to default
decode_data(Data, _, ?S_TXT, _) ->