aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-06-02 08:44:59 +0200
committerRaimo Niskanen <[email protected]>2016-06-02 08:44:59 +0200
commit03e6d8e02a187633a6a09c77e36670f0892d063d (patch)
tree627d1cca102a8a4d82f5d93bbd3639027361a593 /erts/preloaded/src
parent0f1a85ef0373f2b5767579a30a6dc29eeb16438a (diff)
downloadotp-03e6d8e02a187633a6a09c77e36670f0892d063d.tar.gz
otp-03e6d8e02a187633a6a09c77e36670f0892d063d.tar.bz2
otp-03e6d8e02a187633a6a09c77e36670f0892d063d.zip
AF_UNIX is more portable
Fix dialyzer warning for improper list in prim_inet by not using an improper list.
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r--erts/preloaded/src/prim_inet.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/preloaded/src/prim_inet.erl b/erts/preloaded/src/prim_inet.erl
index c6434fd83b..71dbfbd0a7 100644
--- a/erts/preloaded/src/prim_inet.erl
+++ b/erts/preloaded/src/prim_inet.erl
@@ -1756,7 +1756,7 @@ enc_value_2(addr, {local,Addr}) ->
unicode:characters_to_binary(
Addr, file:native_name_encoding())
end,
- [?INET_AF_LOCAL,byte_size(Bin)|Bin];
+ [?INET_AF_LOCAL,byte_size(Bin),Bin];
%%
enc_value_2(ether, [_,_,_,_,_,_]=Xs) -> Xs;
enc_value_2(sockaddr, any) ->