mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Removed some warnings.
This commit is contained in:
@@ -163,7 +163,7 @@ static reg_service(rqstp, xprt)
|
|||||||
/*
|
/*
|
||||||
* Set a program,version to port mapping
|
* Set a program,version to port mapping
|
||||||
*/
|
*/
|
||||||
if (!svc_getargs(xprt, xdr_pmap, ®))
|
if (!svc_getargs(xprt, xdr_pmap, (caddr_t) ®))
|
||||||
svcerr_decode(xprt);
|
svcerr_decode(xprt);
|
||||||
else {
|
else {
|
||||||
/*
|
/*
|
||||||
@@ -211,7 +211,7 @@ static reg_service(rqstp, xprt)
|
|||||||
/*
|
/*
|
||||||
* Remove a program,version to port mapping.
|
* Remove a program,version to port mapping.
|
||||||
*/
|
*/
|
||||||
if (!svc_getargs(xprt, xdr_pmap, ®))
|
if (!svc_getargs(xprt, xdr_pmap, (caddr_t) ®))
|
||||||
svcerr_decode(xprt);
|
svcerr_decode(xprt);
|
||||||
else {
|
else {
|
||||||
ans = 0;
|
ans = 0;
|
||||||
@@ -245,7 +245,7 @@ static reg_service(rqstp, xprt)
|
|||||||
/*
|
/*
|
||||||
* Lookup the mapping for a program,version and return its port
|
* Lookup the mapping for a program,version and return its port
|
||||||
*/
|
*/
|
||||||
if (!svc_getargs(xprt, xdr_pmap, ®))
|
if (!svc_getargs(xprt, xdr_pmap, (caddr_t) ®))
|
||||||
svcerr_decode(xprt);
|
svcerr_decode(xprt);
|
||||||
else {
|
else {
|
||||||
fnd = find_service(reg.pm_prog, reg.pm_vers, reg.pm_prot);
|
fnd = find_service(reg.pm_prog, reg.pm_vers, reg.pm_prot);
|
||||||
@@ -299,7 +299,7 @@ static reg_service(rqstp, xprt)
|
|||||||
*/
|
*/
|
||||||
#define ARGSIZE 9000
|
#define ARGSIZE 9000
|
||||||
|
|
||||||
typedef struct encap_parms {
|
/* typedef */ struct encap_parms {
|
||||||
u_long arglen;
|
u_long arglen;
|
||||||
char *args;
|
char *args;
|
||||||
};
|
};
|
||||||
@@ -414,7 +414,7 @@ callit(rqstp, xprt)
|
|||||||
timeout.tv_sec = 5;
|
timeout.tv_sec = 5;
|
||||||
timeout.tv_usec = 0;
|
timeout.tv_usec = 0;
|
||||||
a.rmt_args.args = buf;
|
a.rmt_args.args = buf;
|
||||||
if (!svc_getargs(xprt, xdr_rmtcall_args, &a))
|
if (!svc_getargs(xprt, xdr_rmtcall_args, (caddr_t) &a))
|
||||||
return;
|
return;
|
||||||
if ((pml = find_service(a.rmt_prog, a.rmt_vers, IPPROTO_UDP)) == NULL)
|
if ((pml = find_service(a.rmt_prog, a.rmt_vers, IPPROTO_UDP)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user