diff options
author | alfred <alfred@FreeBSD.org> | 2002-07-14 23:35:04 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-07-14 23:35:04 +0000 |
commit | 11274ff2e6c59e58b690e3ce1bb371c561ed6930 (patch) | |
tree | fe4471222df4b904c39333a509a06584c6168aa4 /lib/libc/rpc | |
parent | c83780ebeb0fc8740c07ecd2f89297609de71458 (diff) | |
download | FreeBSD-src-11274ff2e6c59e58b690e3ce1bb371c561ed6930.zip FreeBSD-src-11274ff2e6c59e58b690e3ce1bb371c561ed6930.tar.gz |
clnt_vc_create() has const scalar arguments that wind up being modified,
fix it (make them non-const) and update the associated documentation.
Submitted by: mbr
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/clnt_vc.c | 4 | ||||
-rw-r--r-- | lib/libc/rpc/rpc_clnt_create.3 | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c index 52c3428..824a855 100644 --- a/lib/libc/rpc/clnt_vc.c +++ b/lib/libc/rpc/clnt_vc.c @@ -159,8 +159,8 @@ CLIENT * clnt_vc_create(fd, raddr, prog, vers, sendsz, recvsz) int fd; /* open file descriptor */ const struct netbuf *raddr; /* servers address */ - rpcprog_t prog; /* program number */ - rpcvers_t vers; /* version number */ + const rpcprog_t prog; /* program number */ + const rpcvers_t vers; /* version number */ u_int sendsz; /* buffer recv size */ u_int recvsz; /* buffer send size */ { diff --git a/lib/libc/rpc/rpc_clnt_create.3 b/lib/libc/rpc/rpc_clnt_create.3 index d353168..715b430 100644 --- a/lib/libc/rpc/rpc_clnt_create.3 +++ b/lib/libc/rpc/rpc_clnt_create.3 @@ -58,7 +58,7 @@ handles .Ft "CLIENT *" .Fn clnt_tp_create_timed "const char * host" "const rpcprog_t prognum" "const rpcvers_t versnum" "const struct netconfig *netconf" "const struct timeval *timeout" .Ft "CLIENT *" -.Fn clnt_vc_create "const int fildes" "const struct netbuf *svcaddr" "const rpcprog_t prognum" "const rpcvers_t versnum" "const u_int sendsz" "const u_int recvsz" +.Fn clnt_vc_create "const int fildes" "const struct netbuf *svcaddr" "const rpcprog_t prognum" "const rpcvers_t versnum" "u_int sendsz" "u_int recvsz" .Sh DESCRIPTION RPC library routines allow C language programs to make procedure calls on other machines across the network. |