You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2018/01/05 16:36:06 UTC
[42/50] [abbrv] qpid-proton git commit: PROTON-1717 [C proactor] Fix
build error in example
PROTON-1717 [C proactor] Fix build error in example
Fix build error on older compilers in ssl-send example.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/4d16e618
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/4d16e618
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/4d16e618
Branch: refs/heads/go1
Commit: 4d16e6183d4d0eb39e2a29d2a3a289fef2327201
Parents: 5e4242c
Author: Alan Conway <ac...@redhat.com>
Authored: Tue Dec 19 14:20:22 2017 -0500
Committer: Alan Conway <ac...@redhat.com>
Committed: Tue Dec 19 14:45:41 2017 -0500
----------------------------------------------------------------------
examples/c/send-ssl.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/4d16e618/examples/c/send-ssl.c
----------------------------------------------------------------------
diff --git a/examples/c/send-ssl.c b/examples/c/send-ssl.c
index 5d3404c..92bc418 100644
--- a/examples/c/send-ssl.c
+++ b/examples/c/send-ssl.c
@@ -216,7 +216,8 @@ int main(int argc, char **argv) {
struct app_data_t app = {0};
char addr[PN_MAX_ADDR];
pn_transport_t *t = NULL;
-
+ int err;
+
app.container_id = argv[0]; /* Should be unique */
app.host = (argc > 1) ? argv[1] : "";
app.port = (argc > 2) ? argv[2] : "amqp";
@@ -229,7 +230,7 @@ int main(int argc, char **argv) {
/* Configure a transport for SSL. The transport will be freed by the proactor. */
t = pn_transport();
- int err = pn_ssl_init(pn_ssl(t), app.ssl_domain, NULL);
+ err = pn_ssl_init(pn_ssl(t), app.ssl_domain, NULL);
if (err) {
fprintf(stderr, "error initializing SSL: %s\n", pn_code(err));
return 1;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org