qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject qpid-proton git commit: NO-JIRA: Fix C warnings in ruby.i swig wrapper.
Date Wed, 06 Jan 2016 22:17:32 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master fdc3051c9 -> f70966927


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/master
Commit: f7096692768dc07626ee21ed5464e092768da08e
Parents: fdc3051
Author: Alan Conway <aconway@redhat.com>
Authored: Wed Jan 6 17:11:10 2016 -0500
Committer: Alan Conway <aconway@redhat.com>
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


Mime
View raw message