aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2010-09-06 11:43:57 +0200
committerBjörn-Egil Dahlberg <[email protected]>2010-09-06 11:44:01 +0200
commit7b7b71b0e526a2074815125dd773ebf5b7d29743 (patch)
tree00f21d72939000a82e0db885760b7f4c19077f6c
parentdf54b5134dc2270f94157fdf63e2f279c2c49382 (diff)
parentcdd39a4219896387086dd521fbb2dfe06c51aed1 (diff)
downloadotp-7b7b71b0e526a2074815125dd773ebf5b7d29743.tar.gz
otp-7b7b71b0e526a2074815125dd773ebf5b7d29743.tar.bz2
otp-7b7b71b0e526a2074815125dd773ebf5b7d29743.zip
Merge branch 'ms/ei_connect-doc-examples' into dev
* ms/ei_connect-doc-examples: ei_connect: correct man page examples OTP-8813
-rw-r--r--lib/erl_interface/doc/src/ei_connect.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/erl_interface/doc/src/ei_connect.xml b/lib/erl_interface/doc/src/ei_connect.xml
index 927395d1bf..36dfb149cc 100644
--- a/lib/erl_interface/doc/src/ei_connect.xml
+++ b/lib/erl_interface/doc/src/ei_connect.xml
@@ -116,7 +116,7 @@
int n = 0;
struct in_addr addr;
ei_cnode ec;
-addr = inet_addr("150.236.14.75");
+addr.s_addr = inet_addr("150.236.14.75");
if (ei_connect_xinit(&ec,
"chivas",
"madonna",
@@ -132,7 +132,7 @@ if (ei_connect_xinit(&ec,
</p>
<code type="none"><![CDATA[
if (ei_connect_init(&ec, "madonna", "cookie...", n++) < 0) {
- fprintf("ERROR when initializing: %d",erl_errno);
+ fprintf(stderr,"ERROR when initializing: %d",erl_errno);
exit(-1);
}
]]></code>
@@ -177,7 +177,7 @@ int fd = ei_connect(&ec, NODE);
/*** Variant 2 ***/
struct in_addr addr;
-addr = inet_addr(IP_ADDR);
+addr.s_addr = inet_addr(IP_ADDR);
fd = ei_xconnect(&ec, &addr, ALIVE);
]]></code>
</desc>