Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7222D200B82 for ; Fri, 16 Sep 2016 18:04:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 70DE6160ADC; Fri, 16 Sep 2016 16:04:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C1234160AB7 for ; Fri, 16 Sep 2016 18:04:26 +0200 (CEST) Received: (qmail 9804 invoked by uid 500); 16 Sep 2016 16:04:26 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 9793 invoked by uid 99); 16 Sep 2016 16:04:25 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2016 16:04:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CD3B1E05D9; Fri, 16 Sep 2016 16:04:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: astitcher@apache.org To: commits@qpid.apache.org Date: Fri, 16 Sep 2016 16:04:26 -0000 Message-Id: <121c5b3395d241659c64225405e3fc2b@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/4] qpid-proton git commit: PROTON-1303: Use LastIndex instead of LastIndexByte to compile with go 1.4 too archived-at: Fri, 16 Sep 2016 16:04:27 -0000 PROTON-1303: Use LastIndex instead of LastIndexByte to compile with go 1.4 too Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/b8acb8ae Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/b8acb8ae Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/b8acb8ae Branch: refs/heads/master Commit: b8acb8ae53146c6e5726a872e71ee986649c1c16 Parents: 26e7ff8 Author: Andrew Stitcher Authored: Thu Sep 15 15:14:34 2016 -0400 Committer: Andrew Stitcher Committed: Fri Sep 16 11:55:06 2016 -0400 ---------------------------------------------------------------------- proton-c/bindings/go/src/qpid.apache.org/amqp/url.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/b8acb8ae/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go ---------------------------------------------------------------------- diff --git a/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go b/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go index d507c62..fd6c8dc 100644 --- a/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go +++ b/proton-c/bindings/go/src/qpid.apache.org/amqp/url.go @@ -40,7 +40,7 @@ func splitHostPort(hostport string) (string, string, error) { } if hostport[0] == '[' { // There must be a matching ']' as already validated - if l := strings.LastIndexByte(hostport, ']'); len(hostport) == l+1 { + if l := strings.LastIndex(hostport, "]"); len(hostport) == l+1 { // trim off '[' and ']' return hostport[1:l], "", nil } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org