diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-06-27 18:48:45 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-06-27 18:48:45 +0200 |
commit | 48bdda496cea38b791de07e9b22cf7065a6530bc (patch) | |
tree | b5ba140ddfe239bfd4dc4c24044a6e0006da9c0b | |
parent | 1034e93e254cadac191d254b3c892cc3d5077fc0 (diff) |
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
-rw-r--r-- | 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, |