[Libvirt-cim] [PATCH] (#2) Restore const to interface to avoid warnings
Sharad Mishra
snmishra at us.ibm.com
Wed Dec 29 22:09:32 UTC 2010
+1
Sharad Mishra
Open Virtualization
Linux Technology Center
IBM
Chip Vincent
<cvincent at linux.v
net.ibm.com> To
Sent by: List for discussion and development
libvirt-cim-bounc of libvirt CIM
es at redhat.com <libvirt-cim at redhat.com>
cc
12/29/2010 01:51 Subject
PM [Libvirt-cim] [PATCH] (#2) Restore
const to interface to avoid
warnings
Please respond to
List for
discussion and
development of
libvirt CIM
<libvirt-cim at redh
at.com>
# 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
_______________________________________________
Libvirt-cim mailing list
Libvirt-cim at redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20101229/3250599c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20101229/3250599c/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic12313.gif
Type: image/gif
Size: 1255 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20101229/3250599c/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20101229/3250599c/attachment-0002.gif>
More information about the Libvirt-cim
mailing list