[libgovirt] Fix compilation warning



commit 48bdda496cea38b791de07e9b22cf7065a6530bc
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Fri Jun 27 18:48:45 2014 +0200

    Fix compilation warning
    
    ovirt-resource-rest-call.c: In function 'ovirt_resource_rest_call_class_serialize_params':
    ovirt-resource-rest-call.c:141:5: error: passing argument 2 of 'ovirt_resource_add_rest_params' from 
incompatible pointer type [-Werror]
         ovirt_resource_add_rest_params(self->priv->resource, self);
         ^
    In file included from ovirt-resource-rest-call.c:32:0:
    ovirt-resource-private.h:51:6: note: expected 'struct RestProxyCall *' but argument is of type 'struct 
OvirtResourceRestCall *'
     void ovirt_resource_add_rest_params(OvirtResource *resource,
          ^
    cc1: all warnings being treated as errors

 govirt/ovirt-resource-rest-call.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/govirt/ovirt-resource-rest-call.c b/govirt/ovirt-resource-rest-call.c
index 6d3c0fd..8f2e0ef 100644
--- a/govirt/ovirt-resource-rest-call.c
+++ b/govirt/ovirt-resource-rest-call.c
@@ -138,7 +138,7 @@ static gboolean ovirt_resource_rest_call_class_serialize_params(RestProxyCall *c
         *content_len = 0;
     }
 
-    ovirt_resource_add_rest_params(self->priv->resource, self);
+    ovirt_resource_add_rest_params(self->priv->resource, call);
     params = rest_proxy_call_get_params(call);
     if (!rest_params_are_strings(params)) {
         g_set_error(error, OVIRT_REST_CALL_ERROR, 0,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]