summaryrefslogtreecommitdiff
path: root/doc/xs_ipc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/xs_ipc.txt')
-rw-r--r--doc/xs_ipc.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/xs_ipc.txt b/doc/xs_ipc.txt
index f3c5147..b917c78 100644
--- a/doc/xs_ipc.txt
+++ b/doc/xs_ipc.txt
@@ -54,14 +54,14 @@ EXAMPLES
----
/* Assign the pathname "/tmp/feeds/0" */
rc = xs_bind(socket, "ipc:///tmp/feeds/0");
-assert (rc == 0);
+assert (rc != -1);
----
.Connecting a socket
----
/* Connect to the pathname "/tmp/feeds/0" */
rc = xs_connect(socket, "ipc:///tmp/feeds/0");
-assert (rc == 0);
+assert (rc != -1);
----
SEE ALSO