Use `xdrproc_t' to declare xdr_{args,result}. (takes care of PR#1182).
This commit is contained in:
parent
b542137ece
commit
4a5c9a20e5
|
@ -29,7 +29,7 @@
|
|||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)rpc.rstatd.c 1.1 86/09/25 Copyr 1984 Sun Micro";*/
|
||||
/*static char sccsid[] = "from: @(#)rstat_proc.c 2.2 88/08/01 4.0 RPCSRC";*/
|
||||
static char rcsid[] = "$Id: rstat_proc.c,v 1.13 1995/06/24 16:05:38 pk Exp $";
|
||||
static char rcsid[] = "$Id: rstat_proc.c,v 1.14 1995/07/09 00:30:11 pk Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -384,7 +384,7 @@ rstat_service(rqstp, transp)
|
|||
int fill;
|
||||
} argument;
|
||||
char *result;
|
||||
bool_t (*xdr_argument) __P((...)), (*xdr_result) __P((...));
|
||||
xdrproc_t xdr_argument, xdr_result;
|
||||
char *(*local) __P((void *, struct svc_req *));
|
||||
|
||||
switch (rqstp->rq_proc) {
|
||||
|
@ -393,8 +393,8 @@ rstat_service(rqstp, transp)
|
|||
goto leave;
|
||||
|
||||
case RSTATPROC_STATS:
|
||||
xdr_argument = xdr_void;
|
||||
xdr_result = xdr_statstime;
|
||||
xdr_argument = (xdrproc_t)xdr_void;
|
||||
xdr_result = (xdrproc_t)xdr_statstime;
|
||||
switch (rqstp->rq_vers) {
|
||||
case RSTATVERS_ORIG:
|
||||
local = (char *(*) __P((void *, struct svc_req *)))
|
||||
|
@ -415,8 +415,8 @@ rstat_service(rqstp, transp)
|
|||
break;
|
||||
|
||||
case RSTATPROC_HAVEDISK:
|
||||
xdr_argument = xdr_void;
|
||||
xdr_result = xdr_u_int;
|
||||
xdr_argument = (xdrproc_t)xdr_void;
|
||||
xdr_result = (xdrproc_t)xdr_u_int;
|
||||
switch (rqstp->rq_vers) {
|
||||
case RSTATVERS_ORIG:
|
||||
local = (char *(*) __P((void *, struct svc_req *)))
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: rusers_proc.c,v 1.10 1995/06/24 15:47:49 pk Exp $";
|
||||
static char rcsid[] = "$Id: rusers_proc.c,v 1.11 1995/07/09 00:30:15 pk Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <signal.h>
|
||||
|
@ -343,7 +343,7 @@ rusers_service(rqstp, transp)
|
|||
int fill;
|
||||
} argument;
|
||||
char *result;
|
||||
bool_t (*xdr_argument) __P((...)), (*xdr_result) __P((...));
|
||||
xdrproc_t xdr_argument, xdr_result;
|
||||
char *(*local) __P((void *, struct svc_req *));
|
||||
|
||||
switch (rqstp->rq_proc) {
|
||||
|
@ -352,8 +352,8 @@ rusers_service(rqstp, transp)
|
|||
goto leave;
|
||||
|
||||
case RUSERSPROC_NUM:
|
||||
xdr_argument = xdr_void;
|
||||
xdr_result = xdr_int;
|
||||
xdr_argument = (xdrproc_t)xdr_void;
|
||||
xdr_result = (xdrproc_t)xdr_int;
|
||||
switch (rqstp->rq_vers) {
|
||||
case RUSERSVERS_3:
|
||||
case RUSERSVERS_IDLE:
|
||||
|
@ -368,8 +368,8 @@ rusers_service(rqstp, transp)
|
|||
break;
|
||||
|
||||
case RUSERSPROC_NAMES:
|
||||
xdr_argument = xdr_void;
|
||||
xdr_result = xdr_utmp_array;
|
||||
xdr_argument = (xdrproc_t)xdr_void;
|
||||
xdr_result = (xdrproc_t)xdr_utmp_array;
|
||||
switch (rqstp->rq_vers) {
|
||||
case RUSERSVERS_3:
|
||||
local = (char *(*) __P((void *, struct svc_req *)))
|
||||
|
@ -377,7 +377,7 @@ rusers_service(rqstp, transp)
|
|||
break;
|
||||
|
||||
case RUSERSVERS_IDLE:
|
||||
xdr_result = xdr_utmpidlearr;
|
||||
xdr_result = (xdrproc_t)xdr_utmpidlearr;
|
||||
local = (char *(*) __P((void *, struct svc_req *)))
|
||||
rusersproc_names_2_svc;
|
||||
break;
|
||||
|
@ -390,8 +390,8 @@ rusers_service(rqstp, transp)
|
|||
break;
|
||||
|
||||
case RUSERSPROC_ALLNAMES:
|
||||
xdr_argument = xdr_void;
|
||||
xdr_result = xdr_utmp_array;
|
||||
xdr_argument = (xdrproc_t)xdr_void;
|
||||
xdr_result = (xdrproc_t)xdr_utmp_array;
|
||||
switch (rqstp->rq_vers) {
|
||||
case RUSERSVERS_3:
|
||||
local = (char *(*) __P((void *, struct svc_req *)))
|
||||
|
@ -399,7 +399,7 @@ rusers_service(rqstp, transp)
|
|||
break;
|
||||
|
||||
case RUSERSVERS_IDLE:
|
||||
xdr_result = xdr_utmpidlearr;
|
||||
xdr_result = (xdrproc_t)xdr_utmpidlearr;
|
||||
local = (char *(*) __P((void *, struct svc_req *)))
|
||||
rusersproc_allnames_2_svc;
|
||||
break;
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: rwalld.c,v 1.8 1995/06/24 15:57:18 pk Exp $";
|
||||
static char rcsid[] = "$Id: rwalld.c,v 1.9 1995/07/09 00:30:17 pk Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <unistd.h>
|
||||
|
@ -142,7 +142,7 @@ wallprog_1(rqstp, transp)
|
|||
char *wallproc_wall_1_arg;
|
||||
} argument;
|
||||
char *result;
|
||||
bool_t (*xdr_argument) __P((...)), (*xdr_result) __P((...));
|
||||
xdrproc_t xdr_argument, xdr_result;
|
||||
char *(*local) __P((char **, struct svc_req *));
|
||||
|
||||
switch (rqstp->rq_proc) {
|
||||
|
@ -151,8 +151,8 @@ wallprog_1(rqstp, transp)
|
|||
goto leave;
|
||||
|
||||
case WALLPROC_WALL:
|
||||
xdr_argument = xdr_wrapstring;
|
||||
xdr_result = xdr_void;
|
||||
xdr_argument = (xdrproc_t)xdr_wrapstring;
|
||||
xdr_result = (xdrproc_t)xdr_void;
|
||||
local = (char *(*) __P((char **, struct svc_req *)))
|
||||
wallproc_wall_1_svc;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue