]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sunrpc/auth_unix.c (auth_unix_ops): Mark as const.
authorUlrich Drepper <drepper@redhat.com>
Tue, 20 Dec 2005 19:25:53 +0000 (19:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 20 Dec 2005 19:25:53 +0000 (19:25 +0000)
* sunrpc/auth_none.c (ops): Likewise.

ChangeLog
sunrpc/auth_unix.c

index d081d02f59b7ffe7a2961911b2e27a1c443c151b..03b12299ed795867bad90cc594d9150b228a4397 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2005-12-20  Ulrich Drepper  <drepper@redhat.com>
 
-       * sunrpc/auth_none.c (ops): Mark as const.
+       * sunrpc/auth_unix.c (auth_unix_ops): Mark as const.
+       * sunrpc/auth_none.c (ops): Likewise.
 
        * nss/nsswitch.c (databases): Mark as const.  Change name field
        into array.
index c5a874bbbe5dc00d08eb05b4074b35f4b9ce9e75..1740e58cdcd45baae231eadbba67ea7245aa7e0a 100644 (file)
@@ -65,7 +65,7 @@ static bool_t authunix_validate (AUTH *, struct opaque_auth *);
 static bool_t authunix_refresh (AUTH *);
 static void authunix_destroy (AUTH *);
 
-static struct auth_ops auth_unix_ops = {
+static const struct auth_ops auth_unix_ops = {
   authunix_nextverf,
   authunix_marshal,
   authunix_validate,
@@ -116,7 +116,7 @@ no_memory:
       mem_free (au, sizeof (*au));
       return NULL;
     }
-  auth->ah_ops = &auth_unix_ops;
+  auth->ah_ops = (struct auth_ops *) &auth_unix_ops;
   auth->ah_private = (caddr_t) au;
   auth->ah_verf = au->au_shcred = _null_auth;
   au->au_shfaults = 0;