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
This commit is contained in:
Alfred Perlstein 2002-07-14 23:35:04 +00:00
parent 0d76c3ba86
commit 886ee6f6a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100001
3 changed files with 4 additions and 4 deletions

View File

@ -394,7 +394,7 @@ extern CLIENT *clnt_tli_create(const int, const struct netconfig *,
*/
extern CLIENT *clnt_vc_create(const int, const struct netbuf *,
const rpcprog_t, const rpcvers_t,
const u_int, const u_int);
u_int, u_int);
/*
* Added for compatibility to old rpc 4.0. Obsoleted by clnt_vc_create().
*/

View File

@ -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 */
{

View File

@ -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.