Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
src/admin/admin_remote.c | 54 +++++++++++++++----------------
src/admin/admin_server_dispatch.c | 8 ++---
2 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/src/admin/admin_remote.c b/src/admin/admin_remote.c
index b29d109f6a29..76217dddfa4d 100644
--- a/src/admin/admin_remote.c
+++ b/src/admin/admin_remote.c
@@ -261,8 +261,8 @@ remoteAdminServerGetThreadPoolParameters(virAdmServerPtr srv,
virObjectLock(priv);
if (call(srv->conn, 0, ADMIN_PROC_SERVER_GET_THREADPOOL_PARAMETERS,
- (xdrproc_t)xdr_admin_server_get_threadpool_parameters_args, (char *)
&args,
- (xdrproc_t)xdr_admin_server_get_threadpool_parameters_ret, (char *)
&ret) == -1)
+ (xdrproc_t)xdr_admin_server_get_threadpool_parameters_args, (char
*)&args,
+ (xdrproc_t)xdr_admin_server_get_threadpool_parameters_ret, (char *)&ret)
== -1)
goto cleanup;
if (virTypedParamsDeserialize((virTypedParameterRemotePtr) ret.params.params_val,
@@ -273,7 +273,7 @@ remoteAdminServerGetThreadPoolParameters(virAdmServerPtr srv,
goto cleanup;
rv = 0;
- xdr_free((xdrproc_t)xdr_admin_server_get_threadpool_parameters_ret, (char *)
&ret);
+ xdr_free((xdrproc_t)xdr_admin_server_get_threadpool_parameters_ret, (char
*)&ret);
cleanup:
virObjectUnlock(priv);
@@ -296,14 +296,14 @@ remoteAdminServerSetThreadPoolParameters(virAdmServerPtr srv,
virObjectLock(priv);
if (virTypedParamsSerialize(params, nparams,
- (virTypedParameterRemotePtr *)
&args.params.params_val,
+ (virTypedParameterRemotePtr
*)&args.params.params_val,
&args.params.params_len,
0) < 0)
goto cleanup;
if (call(srv->conn, 0, ADMIN_PROC_SERVER_SET_THREADPOOL_PARAMETERS,
- (xdrproc_t)xdr_admin_server_set_threadpool_parameters_args, (char *)
&args,
+ (xdrproc_t)xdr_admin_server_set_threadpool_parameters_args, (char
*)&args,
(xdrproc_t)xdr_void, (char *) NULL) == -1)
goto cleanup;
@@ -333,8 +333,8 @@ remoteAdminClientGetInfo(virAdmClientPtr client,
virObjectLock(priv);
if (call(client->srv->conn, 0, ADMIN_PROC_CLIENT_GET_INFO,
- (xdrproc_t)xdr_admin_client_get_info_args, (char *) &args,
- (xdrproc_t)xdr_admin_client_get_info_ret, (char *) &ret) == -1)
+ (xdrproc_t)xdr_admin_client_get_info_args, (char *)&args,
+ (xdrproc_t)xdr_admin_client_get_info_ret, (char *)&ret) == -1)
goto cleanup;
if (virTypedParamsDeserialize((virTypedParameterRemotePtr) ret.params.params_val,
@@ -345,7 +345,7 @@ remoteAdminClientGetInfo(virAdmClientPtr client,
goto cleanup;
rv = 0;
- xdr_free((xdrproc_t)xdr_admin_client_get_info_ret, (char *) &ret);
+ xdr_free((xdrproc_t)xdr_admin_client_get_info_ret, (char *)&ret);
cleanup:
virObjectUnlock(priv);
@@ -369,10 +369,10 @@ remoteAdminServerGetClientLimits(virAdmServerPtr srv,
virObjectLock(priv);
if (call(srv->conn, 0, ADMIN_PROC_SERVER_GET_CLIENT_LIMITS,
- (xdrproc_t) xdr_admin_server_get_client_limits_args,
- (char *) &args,
- (xdrproc_t) xdr_admin_server_get_client_limits_ret,
- (char *) &ret) == -1)
+ (xdrproc_t)xdr_admin_server_get_client_limits_args,
+ (char *)&args,
+ (xdrproc_t)xdr_admin_server_get_client_limits_ret,
+ (char *)&ret) == -1)
goto cleanup;
if (virTypedParamsDeserialize((virTypedParameterRemotePtr) ret.params.params_val,
@@ -383,8 +383,8 @@ remoteAdminServerGetClientLimits(virAdmServerPtr srv,
goto cleanup;
rv = 0;
- xdr_free((xdrproc_t) xdr_admin_server_get_client_limits_ret,
- (char *) &ret);
+ xdr_free((xdrproc_t)xdr_admin_server_get_client_limits_ret,
+ (char *)&ret);
cleanup:
virObjectUnlock(priv);
@@ -407,15 +407,15 @@ remoteAdminServerSetClientLimits(virAdmServerPtr srv,
virObjectLock(priv);
if (virTypedParamsSerialize(params, nparams,
- (virTypedParameterRemotePtr *)
&args.params.params_val,
+ (virTypedParameterRemotePtr
*)&args.params.params_val,
&args.params.params_len,
0) < 0)
goto cleanup;
if (call(srv->conn, 0, ADMIN_PROC_SERVER_SET_CLIENT_LIMITS,
- (xdrproc_t) xdr_admin_server_set_client_limits_args,
- (char *) &args,
- (xdrproc_t) xdr_void, (char *) NULL) == -1)
+ (xdrproc_t)xdr_admin_server_set_client_limits_args,
+ (char *)&args,
+ (xdrproc_t)xdr_void, (char *) NULL) == -1)
goto cleanup;
rv = 0;
@@ -444,17 +444,17 @@ remoteAdminConnectGetLoggingOutputs(virAdmConnectPtr conn,
if (call(conn,
0,
ADMIN_PROC_CONNECT_GET_LOGGING_OUTPUTS,
- (xdrproc_t) xdr_admin_connect_get_logging_outputs_args,
- (char *) &args,
- (xdrproc_t) xdr_admin_connect_get_logging_outputs_ret,
- (char *) &ret) == -1)
+ (xdrproc_t)xdr_admin_connect_get_logging_outputs_args,
+ (char *)&args,
+ (xdrproc_t)xdr_admin_connect_get_logging_outputs_ret,
+ (char *)&ret) == -1)
goto done;
if (outputs)
VIR_STEAL_PTR(*outputs, ret.outputs);
rv = ret.noutputs;
- xdr_free((xdrproc_t) xdr_admin_connect_get_logging_outputs_ret, (char *) &ret);
+ xdr_free((xdrproc_t)xdr_admin_connect_get_logging_outputs_ret, (char *)&ret);
done:
virObjectUnlock(priv);
@@ -479,10 +479,10 @@ remoteAdminConnectGetLoggingFilters(virAdmConnectPtr conn,
if (call(conn,
0,
ADMIN_PROC_CONNECT_GET_LOGGING_FILTERS,
- (xdrproc_t) xdr_admin_connect_get_logging_filters_args,
- (char *) &args,
- (xdrproc_t) xdr_admin_connect_get_logging_filters_ret,
- (char *) &ret) == -1)
+ (xdrproc_t)xdr_admin_connect_get_logging_filters_args,
+ (char *)&args,
+ (xdrproc_t)xdr_admin_connect_get_logging_filters_ret,
+ (char *)&ret) == -1)
goto done;
if (filters)
diff --git a/src/admin/admin_server_dispatch.c b/src/admin/admin_server_dispatch.c
index b78ff902c0fa..3e2c52cacad0 100644
--- a/src/admin/admin_server_dispatch.c
+++ b/src/admin/admin_server_dispatch.c
@@ -214,7 +214,7 @@ adminDispatchServerGetThreadpoolParameters(virNetServerPtr server
ATTRIBUTE_UNUS
}
if (virTypedParamsSerialize(params, nparams,
- (virTypedParameterRemotePtr *)
&ret->params.params_val,
+ (virTypedParameterRemotePtr
*)&ret->params.params_val,
&ret->params.params_len, 0) < 0)
goto cleanup;
@@ -297,7 +297,7 @@ adminDispatchClientGetInfo(virNetServerPtr server ATTRIBUTE_UNUSED,
if (!(clnt = virNetServerGetClient(srv, args->clnt.id))) {
virReportError(VIR_ERR_NO_CLIENT,
_("no client with matching id '%llu' found"),
- (unsigned long long) args->clnt.id);
+ (unsigned long long)args->clnt.id);
goto cleanup;
}
@@ -313,7 +313,7 @@ adminDispatchClientGetInfo(virNetServerPtr server ATTRIBUTE_UNUSED,
}
if (virTypedParamsSerialize(params, nparams,
- (virTypedParameterRemotePtr *)
&ret->params.params_val,
+ (virTypedParameterRemotePtr
*)&ret->params.params_val,
&ret->params.params_len,
VIR_TYPED_PARAM_STRING_OKAY) < 0)
goto cleanup;
@@ -360,7 +360,7 @@ adminDispatchServerGetClientLimits(virNetServerPtr server
ATTRIBUTE_UNUSED,
}
if (virTypedParamsSerialize(params, nparams,
- (virTypedParameterRemotePtr *)
&ret->params.params_val,
+ (virTypedParameterRemotePtr
*)&ret->params.params_val,
&ret->params.params_len, 0) < 0)
goto cleanup;
--
2.17.0