mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
cast xdr_rpcblist_ptr to xdrproc_t to silence warnings.
This commit is contained in:
parent
b3359df33e
commit
fa0ce29ae7
1 changed files with 4 additions and 4 deletions
|
|
@ -144,9 +144,9 @@ error: fprintf(stderr, "rpcbind: will start from scratch\n");
|
|||
void
|
||||
write_warmstart()
|
||||
{
|
||||
(void) write_struct(RPCBFILE, xdr_rpcblist_ptr, &list_rbl);
|
||||
(void) write_struct(RPCBFILE, (xdrproc_t)xdr_rpcblist_ptr, &list_rbl);
|
||||
#ifdef PORTMAP
|
||||
(void) write_struct(PMAPFILE, xdr_pmaplist_ptr, &list_pml);
|
||||
(void) write_struct(PMAPFILE, (xdrproc_t)xdr_pmaplist_ptr, &list_pml);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
@ -160,11 +160,11 @@ read_warmstart()
|
|||
#endif
|
||||
int ok1, ok2 = TRUE;
|
||||
|
||||
ok1 = read_struct(RPCBFILE, xdr_rpcblist_ptr, &tmp_rpcbl);
|
||||
ok1 = read_struct(RPCBFILE, (xdrproc_t)xdr_rpcblist_ptr, &tmp_rpcbl);
|
||||
if (ok1 == FALSE)
|
||||
return;
|
||||
#ifdef PORTMAP
|
||||
ok2 = read_struct(PMAPFILE, xdr_pmaplist_ptr, &tmp_pmapl);
|
||||
ok2 = read_struct(PMAPFILE, (xdrproc_t)xdr_pmaplist_ptr, &tmp_pmapl);
|
||||
#endif
|
||||
if (ok2 == FALSE) {
|
||||
xdr_free((xdrproc_t) xdr_rpcblist_ptr, (char *)&tmp_rpcbl);
|
||||
|
|
|
|||
Loading…
Reference in a new issue