aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-07-14 23:35:04 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-07-14 23:35:04 +0000
commit886ee6f6a505e59692aabc8c6ed6c940f33d6324 (patch)
treefe4471222df4b904c39333a509a06584c6168aa4 /lib
parent0d76c3ba866616cbc80ca3b30e78242b1fc11de7 (diff)
downloadsrc-886ee6f6a505e59692aabc8c6ed6c940f33d6324.tar.gz
src-886ee6f6a505e59692aabc8c6ed6c940f33d6324.zip
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
Notes
Notes: svn path=/head/; revision=100001
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/rpc/clnt_vc.c4
-rw-r--r--lib/libc/rpc/rpc_clnt_create.32
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c
index 52c3428b9593..824a85570d41 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 d353168530dd..715b43082d2d 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.