aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/auth_des.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-20 22:56:06 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-20 22:56:06 +0000
commit31d7b14cfa14f85fe4533d4e1c81fe2b1fb32a45 (patch)
tree25355423faafd7d72bc2ec3a2cb102d006426fef /sunrpc/auth_des.c
parenta5abbd3316cbfd222a87802a29a6a70e5eda5e59 (diff)
downloadglibc-31d7b14cfa14f85fe4533d4e1c81fe2b1fb32a45.zip
glibc-31d7b14cfa14f85fe4533d4e1c81fe2b1fb32a45.tar.gz
glibc-31d7b14cfa14f85fe4533d4e1c81fe2b1fb32a45.tar.bz2
* 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.
Diffstat (limited to 'sunrpc/auth_des.c')
-rw-r--r--sunrpc/auth_des.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sunrpc/auth_des.c b/sunrpc/auth_des.c
index dbd12e5..a76f027 100644
--- a/sunrpc/auth_des.c
+++ b/sunrpc/auth_des.c
@@ -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))