about summary refs log tree commit diff
path: root/sunrpc/auth_none.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-20 19:00:19 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-20 19:00:19 +0000
commit3d50529df98624014a5d38099e88b364dbaba257 (patch)
tree51037189f0d60cab46e9fcc5dd1b383027c4b827 /sunrpc/auth_none.c
parentcc2f0a2bb9d693cc44182f33f979e2628c99d75e (diff)
downloadglibc-3d50529df98624014a5d38099e88b364dbaba257.tar.gz
glibc-3d50529df98624014a5d38099e88b364dbaba257.tar.xz
glibc-3d50529df98624014a5d38099e88b364dbaba257.zip
* sunrpc/auth_none.c (ops): Mark as const.
	* nss/nsswitch.c (databases): Mark as const.  Change name field
	into array.
	* nss/databases.def: Add warning.
Diffstat (limited to 'sunrpc/auth_none.c')
-rw-r--r--sunrpc/auth_none.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sunrpc/auth_none.c b/sunrpc/auth_none.c
index 9c4d3fde66..f459520a2c 100644
--- a/sunrpc/auth_none.c
+++ b/sunrpc/auth_none.c
@@ -49,7 +49,7 @@ static bool_t authnone_marshal (AUTH *, XDR *);
 static bool_t authnone_validate (AUTH *, struct opaque_auth *);
 static bool_t authnone_refresh (AUTH *);
 
-static struct auth_ops ops = {
+static const struct auth_ops ops = {
   authnone_verf,
   authnone_marshal,
   authnone_validate,
@@ -80,7 +80,7 @@ authnone_create_once (void)
   ap = &authnone_private;
 
   ap->no_client.ah_cred = ap->no_client.ah_verf = _null_auth;
-  ap->no_client.ah_ops = &ops;
+  ap->no_client.ah_ops = (struct auth_ops *) &ops;
   xdrs = &xdr_stream;
   INTUSE(xdrmem_create) (xdrs, ap->marshalled_client,
 			 (u_int) MAX_MARSHAL_SIZE, XDR_ENCODE);
@@ -88,7 +88,7 @@ authnone_create_once (void)
   (void) INTUSE(xdr_opaque_auth) (xdrs, &ap->no_client.ah_verf);
   ap->mcnt = XDR_GETPOS (xdrs);
   XDR_DESTROY (xdrs);
-}  
+}
 
 AUTH *
 authnone_create (void)