diff options
author | alfred <alfred@FreeBSD.org> | 2001-03-23 16:14:49 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2001-03-23 16:14:49 +0000 |
commit | 8e5f42ddb80de05145923cee88caa14c51bc2ffb (patch) | |
tree | 2b1fc25a8d130b7bc12b3c22ec32a7d20a7411f4 | |
parent | 058bb2904405e3a77fa8c05caca59d8ae2253382 (diff) | |
download | FreeBSD-src-8e5f42ddb80de05145923cee88caa14c51bc2ffb.zip FreeBSD-src-8e5f42ddb80de05145923cee88caa14c51bc2ffb.tar.gz |
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
-rw-r--r-- | include/rpc/rpc.h | 4 | ||||
-rw-r--r-- | lib/libc/rpc/rpc_soc.3 | 4 | ||||
-rw-r--r-- | lib/libc/rpc/rpc_soc.c | 2 | ||||
-rw-r--r-- | libexec/ypxfr/ypxfr_extern.h | 1 |
4 files changed, 5 insertions, 6 deletions
diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h index 2e6b947..e16b4fd 100644 --- a/include/rpc/rpc.h +++ b/include/rpc/rpc.h @@ -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 *)); diff --git a/lib/libc/rpc/rpc_soc.3 b/lib/libc/rpc/rpc_soc.3 index ae5819b..3b3b11a 100644 --- a/lib/libc/rpc/rpc_soc.3 +++ b/lib/libc/rpc/rpc_soc.3 @@ -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 diff --git a/lib/libc/rpc/rpc_soc.c b/lib/libc/rpc/rpc_soc.c index 07783d6..4d80f00 100644 --- a/lib/libc/rpc/rpc_soc.c +++ b/lib/libc/rpc/rpc_soc.c @@ -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, diff --git a/libexec/ypxfr/ypxfr_extern.h b/libexec/ypxfr/ypxfr_extern.h index 34c3406..045f496 100644 --- a/libexec/ypxfr/ypxfr_extern.h +++ b/libexec/ypxfr/ypxfr_extern.h @@ -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 *)); |