From 886ee6f6a505e59692aabc8c6ed6c940f33d6324 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Sun, 14 Jul 2002 23:35:04 +0000 Subject: 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 --- lib/libc/rpc/clnt_vc.c | 4 ++-- lib/libc/rpc/rpc_clnt_create.3 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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. -- cgit v1.2.3