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 2015/01/05 21:40:55 UTC
qpid-proton git commit: PROTON-???: Fix archaic C library use so that
proton will compile with standards compliant compilers without non-standard
BSD extensions.
Repository: qpid-proton
Updated Branches:
refs/heads/master ebe4e3d36 -> 3b66b87cc
PROTON-???: Fix archaic C library use so that proton will compile
with standards compliant compilers without non-standard BSD extensions.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/3b66b87c
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/3b66b87c
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/3b66b87c
Branch: refs/heads/master
Commit: 3b66b87ccd3b7efdf6045b4209f4eada14469589
Parents: ebe4e3d
Author: Andrew Stitcher <as...@apache.org>
Authored: Mon Jan 5 15:32:24 2015 -0500
Committer: Andrew Stitcher <as...@apache.org>
Committed: Mon Jan 5 15:40:30 2015 -0500
----------------------------------------------------------------------
proton-c/src/reactor/connection.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3b66b87c/proton-c/src/reactor/connection.c
----------------------------------------------------------------------
diff --git a/proton-c/src/reactor/connection.c b/proton-c/src/reactor/connection.c
index 2757ca5..b917946 100644
--- a/proton-c/src/reactor/connection.c
+++ b/proton-c/src/reactor/connection.c
@@ -26,7 +26,7 @@
#include <proton/transport.h>
#include <assert.h>
#include <stdio.h>
-#include <strings.h>
+#include <string.h>
#include "selectable.h"
// XXX: overloaded for both directions
@@ -57,7 +57,7 @@ void pni_handle_open(pn_reactor_t *reactor, pn_event_t *event) {
pn_string_t *str = pn_string(hostname);
char *host = pn_string_buffer(str);
const char *port = "5672";
- char *colon = rindex(host, ':');
+ char *colon = strrchr(host, ':');
if (colon) {
port = colon + 1;
colon[0] = '\0';
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org