Skip to content

Commit

Permalink
Remove dependance on kernel/src/inet_dns.hrl
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtj committed Aug 3, 2011
1 parent 816af03 commit e5c719e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/smtp_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
mxlookup/1, guess_FQDN/0, compute_cram_digest/2, get_cram_string/1,
trim_crlf/1, rfc5322_timestamp/0, zone/0, generate_message_id/0,
generate_message_boundary/0]).
-include_lib("kernel/src/inet_dns.hrl").

%% @doc returns a sorted list of mx servers for `Domain', lowest distance first
mxlookup(Domain) ->
Expand All @@ -44,7 +43,7 @@ mxlookup(Domain) ->
_ ->
ok
end,
case inet_res:lookup(Domain, in, ?S_MX) of
case inet_res:lookup(Domain, in, mx) of
[] ->
[];
Result ->
Expand Down

0 comments on commit e5c719e

Please sign in to comment.