mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Cast registerrpc args to xdrproc_t explicitly
Fixes: agent.c: In function '_DtCm_init_agent': agent.c:160: warning: passing argument 5 of 'registerrpc' from incompatible pointer type agent.c:160: warning: passing argument 6 of 'registerrpc' from incompatible pointer type agent.c:167: warning: passing argument 5 of 'registerrpc' from incompatible pointer type agent.c:167: warning: passing argument 6 of 'registerrpc' from incompatible pointer type
This commit is contained in:
parent
706fccb50e
commit
aa12f819dd
1 changed files with 3 additions and 3 deletions
|
@ -156,15 +156,15 @@ _DtCm_init_agent()
|
|||
}
|
||||
|
||||
if (registerrpc(_DtCm_transient, AGENTVERS, update_callback,
|
||||
(char *(*)())_DtCm_update_callback_1, _DtCm_xdr_Table_Res_4,
|
||||
_DtCm_xdr_Update_Status) == -1) {
|
||||
(char *(*)())_DtCm_update_callback_1, (xdrproc_t)_DtCm_xdr_Table_Res_4,
|
||||
(xdrproc_t)_DtCm_xdr_Update_Status) == -1) {
|
||||
_DtCm_print_errmsg("Cannot register v1 callback handler\n");
|
||||
_DtCm_print_errmsg("Callback cannot be enabled.\n");
|
||||
}
|
||||
|
||||
if (registerrpc(_DtCm_transient, AGENTVERS_2, CMCB_UPDATE_CALLBACK,
|
||||
(char *(*)())cmcb_update_callback_2_svc,
|
||||
xdr_cmcb_update_callback_args, xdr_void) == -1) {
|
||||
(xdrproc_t)xdr_cmcb_update_callback_args, (xdrproc_t)xdr_void) == -1) {
|
||||
_DtCm_print_errmsg("Cannot register v2 callback handler\n");
|
||||
_DtCm_print_errmsg("Callback cannot be enabled.\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue