aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/tutorial/c_portdriver.xmlsrc
diff options
context:
space:
mode:
authorGustav Simonsson <[email protected]>2012-03-19 16:12:46 +0100
committerGustav Simonsson <[email protected]>2012-03-19 16:12:46 +0100
commitbd8e724a56aff8936fe61bfdb72e9548637ef561 (patch)
tree4acf72f622ab19089bcab840ad867f530f971432 /system/doc/tutorial/c_portdriver.xmlsrc
parent8406f47252a5f1fd38cd771aa7fa692817677709 (diff)
parent662e3ffeed74d9121315d86af46430dd71e01709 (diff)
downloadotp-bd8e724a56aff8936fe61bfdb72e9548637ef561.tar.gz
otp-bd8e724a56aff8936fe61bfdb72e9548637ef561.tar.bz2
otp-bd8e724a56aff8936fe61bfdb72e9548637ef561.zip
Merge branch 'maint'
Diffstat (limited to 'system/doc/tutorial/c_portdriver.xmlsrc')
-rw-r--r--system/doc/tutorial/c_portdriver.xmlsrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/doc/tutorial/c_portdriver.xmlsrc b/system/doc/tutorial/c_portdriver.xmlsrc
index f875fa80d2..e6887a25d1 100644
--- a/system/doc/tutorial/c_portdriver.xmlsrc
+++ b/system/doc/tutorial/c_portdriver.xmlsrc
@@ -68,8 +68,8 @@
start(SharedLib) ->
case erl_ddll:load_driver(".", SharedLib) of
ok -> ok;
-\011{error, already_loaded} -> ok;
-\011_ -> exit({error, could_not_load_driver})
+ {error, already_loaded} -> ok;
+ _ -> exit({error, could_not_load_driver})
end,
spawn(?MODULE, init, [SharedLib]).
@@ -102,7 +102,7 @@ loop(Port) ->
{call, Caller, Msg} ->
Port ! {self(), {command, encode(Msg)}},
receive
-\011 {Port, {data, Data}} ->
+ {Port, {data, Data}} ->
Caller ! {complex, decode(Data)}
end,
loop(Port)