[konkretcmpi] Forgot to add the patches

Radek Novacek rnovacek at fedoraproject.org
Thu May 2 08:13:48 UTC 2013


commit d7409aa90eaa1985e2b34664d3e45273d1f8e731
Author: Radek Novacek <rnovacek at redhat.com>
Date:   Thu May 2 10:13:34 2013 +0200

    Forgot to add the patches

 konkretcmpi-0.9.0-enable-direct-call.patch         |   14 +++++++++
 ...pi-0.9.0-fix-inputoutput-method-arguments.patch |   31 ++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)
---
diff --git a/konkretcmpi-0.9.0-enable-direct-call.patch b/konkretcmpi-0.9.0-enable-direct-call.patch
new file mode 100644
index 0000000..a5abe3c
--- /dev/null
+++ b/konkretcmpi-0.9.0-enable-direct-call.patch
@@ -0,0 +1,14 @@
+diff -up konkretcmpi-0.9.0/src/konkret/defaultgi.c.enable-direct-call konkretcmpi-0.9.0/src/konkret/defaultgi.c
+--- konkretcmpi-0.9.0/src/konkret/defaultgi.c.enable-direct-call	2013-03-21 15:24:42.975057969 +0100
++++ konkretcmpi-0.9.0/src/konkret/defaultgi.c	2013-03-21 15:24:55.933389115 +0100
+@@ -28,9 +28,7 @@
+ #define enumInstanceNames enumerateInstanceNames
+ #include "konkret.h"
+ 
+-#if 0
+-# define DIRECT_CALL
+-#endif
++#define DIRECT_CALL
+ 
+ #if defined(DIRECT_CALL)
+ 
diff --git a/konkretcmpi-0.9.0-fix-inputoutput-method-arguments.patch b/konkretcmpi-0.9.0-fix-inputoutput-method-arguments.patch
new file mode 100644
index 0000000..0dd0ae9
--- /dev/null
+++ b/konkretcmpi-0.9.0-fix-inputoutput-method-arguments.patch
@@ -0,0 +1,31 @@
+diff --git a/src/konkret/general.c b/src/konkret/general.c
+index 06f6d5a..96d07fc 100644
+--- a/src/konkret/general.c
++++ b/src/konkret/general.c
+@@ -423,10 +423,10 @@ CMPIStatus KBase_SetToArgs(
+ 
+             cd = _data(value, pos.tag);
+ 
+-            if ((pos.tag & KTAG_IN) && !in)
+-                break;;
++            if (in && !(pos.tag & KTAG_IN))
++                break;
+ 
+-            if ((pos.tag & KTAG_OUT) && !out)
++            if (out && !(pos.tag & KTAG_OUT))
+                 break;
+ 
+             if (value->null)
+@@ -858,10 +858,10 @@ CMPIStatus KBase_FromArgs(
+ 
+         if ((kv = _find_property(self, KChars(name), &tag)))
+         {
+-            if ((tag & KTAG_IN) && !in)
++            if (in && !(tag & KTAG_IN))
+                 continue;
+ 
+-            if ((tag & KTAG_OUT) && !out)
++            if (out && !(tag & KTAG_OUT))
+                 continue;
+ 
+             _set_value(kv, tag, &cd);


More information about the scm-commits mailing list