diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2011-09-05 15:28:01 +1000 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2011-09-05 15:28:14 +1000 |
commit | 1994c8a17463863737847ca04e4b17a358394e23 (patch) | |
tree | 73045a174855a93215376710db4229351aa2ca20 /src/tls | |
parent | Get rid of useless function clause (diff) |
Change argument of open_port/2 to string in order to shut up the dialyzer
Diffstat (limited to 'src/tls')
-rw-r--r-- | src/tls/tls.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tls/tls.erl b/src/tls/tls.erl index 967cf9249..dfb9d2306 100644 --- a/src/tls/tls.erl +++ b/src/tls/tls.erl @@ -84,7 +84,7 @@ init([]) -> ok -> ok; {error, already_loaded} -> ok end, - Port = open_port({spawn, tls_drv}, [binary]), + Port = open_port({spawn, "tls_drv"}, [binary]), Res = port_control(Port, ?SET_CERTIFICATE_FILE_ACCEPT, "./ssl.pem" ++ [0]), case Res of <<0>> -> @@ -130,7 +130,7 @@ tcp_to_tls(TCPSocket, Options) -> ok -> ok; {error, already_loaded} -> ok end, - Port = open_port({spawn, tls_drv}, [binary]), + Port = open_port({spawn, "tls_drv"}, [binary]), Flags = case lists:member(verify_none, Options) of true -> @@ -267,7 +267,7 @@ test() -> ok -> ok; {error, already_loaded} -> ok end, - Port = open_port({spawn, tls_drv}, [binary]), + Port = open_port({spawn, "tls_drv"}, [binary]), ?PRINT("open_port: ~p~n", [Port]), PCRes = port_control(Port, ?SET_CERTIFICATE_FILE_ACCEPT, "./ssl.pem" ++ [0]), |