aboutsummaryrefslogtreecommitdiff
path: root/src/xml_stream.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2011-09-05 15:28:01 +1000
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2011-09-05 15:28:14 +1000
commit1994c8a17463863737847ca04e4b17a358394e23 (patch)
tree73045a174855a93215376710db4229351aa2ca20 /src/xml_stream.erl
parentGet 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/xml_stream.erl')
-rw-r--r--src/xml_stream.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml_stream.erl b/src/xml_stream.erl
index 1deb8936e..205945fce 100644
--- a/src/xml_stream.erl
+++ b/src/xml_stream.erl
@@ -99,7 +99,7 @@ new(CallbackPid) ->
new(CallbackPid, infinity).
new(CallbackPid, MaxSize) ->
- Port = open_port({spawn, expat_erl}, [binary]),
+ Port = open_port({spawn, "expat_erl"}, [binary]),
#xml_stream_state{callback_pid = CallbackPid,
port = Port,
stack = [],
@@ -140,7 +140,7 @@ close(#xml_stream_state{port = Port}) ->
parse_element(Str) ->
- Port = open_port({spawn, expat_erl}, [binary]),
+ Port = open_port({spawn, "expat_erl"}, [binary]),
Res = port_control(Port, ?PARSE_FINAL_COMMAND, Str),
port_close(Port),
process_element_events(binary_to_term(Res)).