summaryrefslogtreecommitdiff
path: root/perf/inproc_lat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'perf/inproc_lat.cpp')
-rw-r--r--perf/inproc_lat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/perf/inproc_lat.cpp b/perf/inproc_lat.cpp
index fc0b76b..54973db 100644
--- a/perf/inproc_lat.cpp
+++ b/perf/inproc_lat.cpp
@@ -55,7 +55,7 @@ static void *worker (void *ctx_)
}
rc = xs_connect (s, "inproc://lat_test");
- if (rc != 0) {
+ if (rc == -1) {
printf ("error in xs_connect: %s\n", xs_strerror (errno));
exit (1);
}
@@ -135,7 +135,7 @@ int main (int argc, char *argv [])
}
rc = xs_bind (s, "inproc://lat_test");
- if (rc != 0) {
+ if (rc == -1) {
printf ("error in xs_bind: %s\n", xs_strerror (errno));
return -1;
}