You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2017/11/14 18:54:56 UTC

qpid-proton git commit: NO-JIRA: Trivial code rearrangement to aid debugging

Repository: qpid-proton
Updated Branches:
  refs/heads/master 78a292683 -> 8e3fa1950


NO-JIRA: Trivial code rearrangement to aid debugging


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/8e3fa195
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/8e3fa195
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/8e3fa195

Branch: refs/heads/master
Commit: 8e3fa195079c42f5663a1b24f617aab485f851f7
Parents: 78a2926
Author: Andrew Stitcher <as...@apache.org>
Authored: Tue Nov 14 13:48:03 2017 -0500
Committer: Andrew Stitcher <as...@apache.org>
Committed: Tue Nov 14 13:48:03 2017 -0500

----------------------------------------------------------------------
 proton-c/src/tests/proactor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/8e3fa195/proton-c/src/tests/proactor.c
----------------------------------------------------------------------
diff --git a/proton-c/src/tests/proactor.c b/proton-c/src/tests/proactor.c
index aecbd3e..e020055 100644
--- a/proton-c/src/tests/proactor.c
+++ b/proton-c/src/tests/proactor.c
@@ -877,7 +877,8 @@ static void test_netaddr(test_t *t) {
   char cr[1024], cl[1024], sr[1024], sl[1024];
 
   pn_transport_t *ct = pn_connection_transport(c);
-  pn_netaddr_str(pn_netaddr_remote(ct), cr, sizeof(cr));
+  const pn_netaddr_t *na = pn_netaddr_remote(ct);
+  pn_netaddr_str(na, cr, sizeof(cr));
   TEST_STR_IN(t, test_port_use_host(&l.port, ""), cr); /* remote address has listening port */
 
   pn_connection_t *s = last_accepted; /* server side of the connection */
@@ -892,7 +893,6 @@ static void test_netaddr(test_t *t) {
   TEST_STR_EQUAL(t, cl, sr);    /* client local == server remote */
 
   /* Examine as sockaddr */
-  const pn_netaddr_t *na = pn_netaddr_remote(ct);
   const struct sockaddr *sa = pn_netaddr_sockaddr(na);
   TEST_CHECK(t, AF_INET == sa->sa_family);
   char host[TEST_PORT_MAX_STR] = "";


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org