mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
* sunrpc/clnt_unix.c (unix_ops): Mark as const.
* sunrpc/auth_des.c (authdes_ops): Likewise. * sunrpc/svc_raw.c (server_ops): Likewise. * sunrpc/clnt_udp.c (udp_ops): Likewise. * sunrpc/clnt_tcp.c (tcp_ops): Likewise. * sunrpc/clnt_raw.c (client_ops): Likewise. * sunrpc/auth_unix.c (auth_unix_ops): Likewise.
This commit is contained in:
parent
a5abbd3316
commit
31d7b14cfa
@ -14,7 +14,13 @@
|
||||
|
||||
2005-12-20 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sunrpc/auth_unix.c (auth_unix_ops): Mark as const.
|
||||
* sunrpc/clnt_unix.c (unix_ops): Mark as const.
|
||||
* sunrpc/auth_des.c (authdes_ops): Likewise.
|
||||
* sunrpc/svc_raw.c (server_ops): Likewise.
|
||||
* sunrpc/clnt_udp.c (udp_ops): Likewise.
|
||||
* sunrpc/clnt_tcp.c (tcp_ops): Likewise.
|
||||
* sunrpc/clnt_raw.c (client_ops): Likewise.
|
||||
* sunrpc/auth_unix.c (auth_unix_ops): Likewise.
|
||||
* sunrpc/auth_none.c (ops): Likewise.
|
||||
|
||||
* nss/nsswitch.c (databases): Mark as const. Change name field
|
||||
|
@ -66,7 +66,7 @@ static void authdes_destroy (AUTH *);
|
||||
static bool_t synchronize (struct sockaddr *, struct rpc_timeval *)
|
||||
internal_function;
|
||||
|
||||
static struct auth_ops authdes_ops = {
|
||||
static const struct auth_ops authdes_ops = {
|
||||
authdes_nextverf,
|
||||
authdes_marshal,
|
||||
authdes_validate,
|
||||
@ -185,7 +185,7 @@ authdes_pk_create (const char *servername, netobj *pkey, u_int window,
|
||||
*/
|
||||
auth->ah_cred.oa_flavor = AUTH_DES;
|
||||
auth->ah_verf.oa_flavor = AUTH_DES;
|
||||
auth->ah_ops = &authdes_ops;
|
||||
auth->ah_ops = (struct auth_ops *) &authdes_ops;
|
||||
auth->ah_private = (caddr_t) ad;
|
||||
|
||||
if (!authdes_refresh (auth))
|
||||
|
@ -91,7 +91,7 @@ static bool_t clnttcp_freeres (CLIENT *, xdrproc_t, caddr_t);
|
||||
static bool_t clnttcp_control (CLIENT *, int, char *);
|
||||
static void clnttcp_destroy (CLIENT *);
|
||||
|
||||
static struct clnt_ops tcp_ops =
|
||||
static const struct clnt_ops tcp_ops =
|
||||
{
|
||||
clnttcp_call,
|
||||
clnttcp_abort,
|
||||
@ -213,7 +213,7 @@ clnttcp_create (struct sockaddr_in *raddr, u_long prog, u_long vers,
|
||||
*/
|
||||
INTUSE(xdrrec_create) (&(ct->ct_xdrs), sendsz, recvsz,
|
||||
(caddr_t) ct, readtcp, writetcp);
|
||||
h->cl_ops = &tcp_ops;
|
||||
h->cl_ops = (struct clnt_ops *) &tcp_ops;
|
||||
h->cl_private = (caddr_t) ct;
|
||||
h->cl_auth = INTUSE(authnone_create) ();
|
||||
return h;
|
||||
|
@ -74,7 +74,7 @@ static bool_t clntudp_freeres (CLIENT *, xdrproc_t, caddr_t);
|
||||
static bool_t clntudp_control (CLIENT *, int, char *);
|
||||
static void clntudp_destroy (CLIENT *);
|
||||
|
||||
static struct clnt_ops udp_ops =
|
||||
static const struct clnt_ops udp_ops =
|
||||
{
|
||||
clntudp_call,
|
||||
clntudp_abort,
|
||||
@ -153,7 +153,7 @@ clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, u_long version,
|
||||
}
|
||||
raddr->sin_port = htons (port);
|
||||
}
|
||||
cl->cl_ops = &udp_ops;
|
||||
cl->cl_ops = (struct clnt_ops *) &udp_ops;
|
||||
cl->cl_private = (caddr_t) cu;
|
||||
cu->cu_raddr = *raddr;
|
||||
cu->cu_rlen = sizeof (cu->cu_raddr);
|
||||
|
@ -88,7 +88,7 @@ static bool_t clntunix_freeres (CLIENT *, xdrproc_t, caddr_t);
|
||||
static bool_t clntunix_control (CLIENT *, int, char *);
|
||||
static void clntunix_destroy (CLIENT *);
|
||||
|
||||
static struct clnt_ops unix_ops =
|
||||
static const struct clnt_ops unix_ops =
|
||||
{
|
||||
clntunix_call,
|
||||
clntunix_abort,
|
||||
@ -192,7 +192,7 @@ clntunix_create (struct sockaddr_un *raddr, u_long prog, u_long vers,
|
||||
*/
|
||||
INTUSE(xdrrec_create) (&(ct->ct_xdrs), sendsz, recvsz,
|
||||
(caddr_t) ct, readunix, writeunix);
|
||||
h->cl_ops = &unix_ops;
|
||||
h->cl_ops = (struct clnt_ops *) &unix_ops;
|
||||
h->cl_private = (caddr_t) ct;
|
||||
h->cl_auth = INTUSE(authnone_create) ();
|
||||
return h;
|
||||
|
@ -66,7 +66,7 @@ static bool_t svcraw_reply (SVCXPRT *, struct rpc_msg *);
|
||||
static bool_t svcraw_freeargs (SVCXPRT *, xdrproc_t, caddr_t);
|
||||
static void svcraw_destroy (SVCXPRT *);
|
||||
|
||||
static struct xp_ops server_ops =
|
||||
static const struct xp_ops server_ops =
|
||||
{
|
||||
svcraw_recv,
|
||||
svcraw_stat,
|
||||
@ -89,7 +89,7 @@ svcraw_create (void)
|
||||
}
|
||||
srp->server.xp_sock = 0;
|
||||
srp->server.xp_port = 0;
|
||||
srp->server.xp_ops = &server_ops;
|
||||
srp->server.xp_ops = (struct xp_ops *) &server_ops;
|
||||
srp->server.xp_verf.oa_base = srp->verf_body;
|
||||
INTUSE(xdrmem_create) (&srp->xdr_stream, srp->_raw_buf, UDPMSGSIZE,
|
||||
XDR_FREE);
|
||||
|
Loading…
Reference in New Issue
Block a user