Return-Path: X-Original-To: apmail-qpid-commits-archive@www.apache.org Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 483D718DAA for ; Thu, 7 Jan 2016 22:29:12 +0000 (UTC) Received: (qmail 1346 invoked by uid 500); 7 Jan 2016 22:29:12 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 1270 invoked by uid 500); 7 Jan 2016 22:29:12 -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 972 invoked by uid 99); 7 Jan 2016 22:29:11 -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; Thu, 07 Jan 2016 22:29:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CB166E3835; Thu, 7 Jan 2016 22:29:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aconway@apache.org To: commits@qpid.apache.org Date: Thu, 07 Jan 2016 22:29:19 -0000 Message-Id: <2817176d245640fc8ed0f17393bd1d38@git.apache.org> In-Reply-To: <6fd011dcbe014101b032c697d76da9c0@git.apache.org> References: <6fd011dcbe014101b032c697d76da9c0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [09/15] qpid-proton git commit: NO-JIRA: Fix C warnings in ruby.i swig wrapper. NO-JIRA: Fix C warnings in ruby.i swig wrapper. Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/f7096692 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/f7096692 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/f7096692 Branch: refs/heads/go1 Commit: f7096692768dc07626ee21ed5464e092768da08e Parents: fdc3051 Author: Alan Conway Authored: Wed Jan 6 17:11:10 2016 -0500 Committer: Alan Conway Committed: Wed Jan 6 17:11:10 2016 -0500 ---------------------------------------------------------------------- proton-c/bindings/ruby/ruby.i | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/f7096692/proton-c/bindings/ruby/ruby.i ---------------------------------------------------------------------- diff --git a/proton-c/bindings/ruby/ruby.i b/proton-c/bindings/ruby/ruby.i index 9edbdb2..336b222 100644 --- a/proton-c/bindings/ruby/ruby.i +++ b/proton-c/bindings/ruby/ruby.i @@ -478,14 +478,16 @@ typedef struct Pn_rbkey_t { char *key_value; } Pn_rbkey_t; -void Pn_rbkey_initialize(Pn_rbkey_t *rbkey) { +void Pn_rbkey_initialize(void *vp_rbkey) { + Pn_rbkey_t *rbkey = (Pn_rbkey_t*)vp_rbkey; assert(rbkey); rbkey->registry = NULL; rbkey->method = NULL; rbkey->key_value = NULL; } -void Pn_rbkey_finalize(Pn_rbkey_t *rbkey) { +void Pn_rbkey_finalize(void *vp_rbkey) { + Pn_rbkey_t *rbkey = (Pn_rbkey_t*)vp_rbkey; if(rbkey && rbkey->registry && rbkey->method && rbkey->key_value) { rb_funcall((VALUE )rbkey->registry, rb_intern(rbkey->method), 1, rb_str_new2(rbkey->key_value)); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org