mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 09:12:44 +00:00
change callrpc() from taking "char *" args, I'm quite sure they really meant
to use "void *". remove a duplicate prototype for callrpc() from libexec/ypxfr/ypxfr_extern.h
This commit is contained in:
parent
12829b5fd8
commit
cc74aaddad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74695
@ -83,8 +83,8 @@ extern int get_myaddress __P((struct sockaddr_in *));
|
||||
extern int bindresvport __P((int, struct sockaddr_in *));
|
||||
extern int registerrpc __P((int, int, int, char *(*) __P((char [UDPMSGSIZE])),
|
||||
xdrproc_t, xdrproc_t));
|
||||
extern int callrpc __P((char *, int, int, int, xdrproc_t, char *,
|
||||
xdrproc_t , char *));
|
||||
extern int callrpc __P((char *, int, int, int, xdrproc_t, void *,
|
||||
xdrproc_t , void *));
|
||||
extern int getrpcport __P((char *, int, int, int));
|
||||
|
||||
char *taddr2uaddr __P((const struct netconfig *, const struct netbuf *));
|
||||
|
@ -185,9 +185,9 @@ with the appropriate parameters.
|
||||
.Fa "u_long versnum"
|
||||
.Fa "u_long procnum"
|
||||
.Fa "xdrproc_t inproc"
|
||||
.Fa "char *in"
|
||||
.Fa "void *in"
|
||||
.Fa "xdrproc_t outproc"
|
||||
.Fa "char *out"
|
||||
.Fa "void *out"
|
||||
.Fc
|
||||
.Xc
|
||||
.Pp
|
||||
|
@ -335,7 +335,7 @@ callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out)
|
||||
char *host;
|
||||
int prognum, versnum, procnum;
|
||||
xdrproc_t inproc, outproc;
|
||||
char *in, *out;
|
||||
void *in, *out;
|
||||
{
|
||||
|
||||
return (int)rpc_call(host, (rpcprog_t)prognum, (rpcvers_t)versnum,
|
||||
|
@ -60,4 +60,3 @@ extern unsigned long ypxfr_get_order __P(( char *, char *, char *, const int ));
|
||||
extern int ypxfr_match __P(( char *, char *, char *, char *, unsigned long ));
|
||||
extern char *ypxfxerr_string __P(( ypxfrstat ));
|
||||
extern int ypxfrd_get_map __P(( char *, char *, char *, char *));
|
||||
extern int callrpc __P(( char *, int, int, int, xdrproc_t, char *, xdrproc_t, char *));
|
||||
|
Loading…
Reference in New Issue
Block a user