[Libvirt-cim] [PATCH] (#2) Restore const to interface to avoid warnings

Chip Vincent cvincent at linux.vnet.ibm.com
Wed Dec 29 21:51:39 UTC 2010


# HG changeset patch
# User Chip Vincent <cvincent at us.ibm.com>
# Date 1293659369 18000
# Node ID 4339c67a849ce34af7d7df62860431be4a879f31
# Parent  b2f96d5cfbe7e4c8608fcee30b6007457677adbd
Restore const to interface to avoid warnings.

This change simply tweaks the interface to avoid build warnings (sadly 
buried in macros).

Signed-off-by: Chip Vincent <cvincent at us.ibm.com>

diff -r b2f96d5cfbe7 -r 4339c67a849c std_indication.c
--- a/std_indication.c  Wed Dec 29 16:42:31 2010 -0500
+++ b/std_indication.c  Wed Dec 29 16:49:29 2010 -0500
@@ -98,7 +98,7 @@
 
 static CMPIStatus default_raise(const CMPIBroker *broker,
                                 const CMPIContext *context,
-                                CMPIObjectPath *ref,
+                                const CMPIObjectPath *ref,
                                 CMPIInstance *ind)
 {
         CMPIStatus s = {CMPI_RC_OK, NULL};
@@ -117,7 +117,7 @@
 static CMPIStatus raise(struct std_indication_ctx *ctx,
                         const CMPIContext *context,
                         const CMPIArgs *argsin,
-                        CMPIObjectPath *ref)
+                        const CMPIObjectPath *ref)
 {
         bool enabled;
         CMPIInstance *inst;
@@ -301,7 +301,7 @@
 CMPIStatus stdi_handler(CMPIMethodMI *self,
                         const CMPIContext *context,
                         const CMPIResult *results,
-                        CMPIObjectPath *reference,
+                        const CMPIObjectPath *reference,
                         const char *methodname,
                         const CMPIArgs *argsin,
                         CMPIArgs *argsout)
diff -r b2f96d5cfbe7 -r 4339c67a849c std_indication.h
--- a/std_indication.h  Wed Dec 29 16:42:31 2010 -0500
+++ b/std_indication.h  Wed Dec 29 16:49:29 2010 -0500
@@ -41,7 +41,7 @@
 
 typedef CMPIStatus (*raise_indication_t)(const CMPIBroker *broker,
                                          const CMPIContext *ctx,
-                                         CMPIObjectPath *ref,
+                                         const CMPIObjectPath *ref,
                                          const CMPIInstance *ind);
 
 typedef CMPIStatus (*trigger_indication_t)(const CMPIContext *ctx);

-- 
Chip Vincent
Open Virtualization, Linux Technology Center
IBM Systems & Technology Group
phone: 919-254-4482, T/L 444-4482
email: cvincent at us.ibm.com




More information about the Libvirt-cim mailing list