Problem: perf use deprecated zmq_term

Solution: replace all occurrences with `zmq_ctx_term`
This commit is contained in:
Constantin Rack 2016-02-01 21:44:01 +01:00
parent 0d171563d0
commit 10d9ef8a5f
6 changed files with 12 additions and 12 deletions

View File

@ -229,9 +229,9 @@ int main (int argc, char *argv [])
return -1;
}
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
if (rc != 0) {
printf ("error in zmq_term: %s\n", zmq_strerror (errno));
printf ("error in zmq_ctx_term: %s\n", zmq_strerror (errno));
return -1;
}

View File

@ -232,9 +232,9 @@ int main (int argc, char *argv [])
return -1;
}
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
if (rc != 0) {
printf ("error in zmq_term: %s\n", zmq_strerror (errno));
printf ("error in zmq_ctx_term: %s\n", zmq_strerror (errno));
return -1;
}

View File

@ -106,9 +106,9 @@ int main (int argc, char *argv [])
return -1;
}
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
if (rc != 0) {
printf ("error in zmq_term: %s\n", zmq_strerror (errno));
printf ("error in zmq_ctx_term: %s\n", zmq_strerror (errno));
return -1;
}

View File

@ -130,9 +130,9 @@ int main (int argc, char *argv [])
return -1;
}
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
if (rc != 0) {
printf ("error in zmq_term: %s\n", zmq_strerror (errno));
printf ("error in zmq_ctx_term: %s\n", zmq_strerror (errno));
return -1;
}

View File

@ -119,9 +119,9 @@ int main (int argc, char *argv [])
return -1;
}
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
if (rc != 0) {
printf ("error in zmq_term: %s\n", zmq_strerror (errno));
printf ("error in zmq_ctx_term: %s\n", zmq_strerror (errno));
return -1;
}

View File

@ -97,9 +97,9 @@ int main (int argc, char *argv [])
return -1;
}
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
if (rc != 0) {
printf ("error in zmq_term: %s\n", zmq_strerror (errno));
printf ("error in zmq_ctx_term: %s\n", zmq_strerror (errno));
return -1;
}