More const for ops tables
authorKen Raeburn <raeburn@mit.edu>
Wed, 8 Jan 2003 03:55:40 +0000 (03:55 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 8 Jan 2003 03:55:40 +0000 (03:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15096 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/ChangeLog
src/lib/krb5/ccache/cc_file.c
src/lib/krb5/ccache/ccapi/ChangeLog
src/lib/krb5/ccache/ccapi/winccld.c
src/lib/krb5/ccache/t_cc.c

index 038a1ce5179f430f02f07fc4e9529726fadb1ed7..3cb606700e8d78734848d01ae0eddf8e702c08e8 100644 (file)
@@ -1,10 +1,11 @@
 2003-01-07  Ken Raeburn  <raeburn@mit.edu>
 
-       * cc_file.c (krb5_cc_file_ops): Now const.
+       * cc_file.c (krb5_cc_file_ops, krb5_fcc_ops): Now const.
        * fcc.h (krb5_cc_file_ops): Update decl.
        * cc_memory.c (krb5_mcc_ops): Now const.
        * ccbase.c (krb5_mcc_ops): Update decl.
        * ccdefops.c (krb5_cc_dfl_ops): Now points to const.
+       * t_cc.c (krb5_fcc_ops, krb5_mcc_ops): Update decls.
 
 2002-09-03  Ken Raeburn  <raeburn@mit.edu>
 
index 62ca411f265a956e6a59c6ada26852033ee01e92..eb051c150a617b185f644246fd3639ddad58e53a 100644 (file)
@@ -1766,7 +1766,7 @@ krb5_fcc_destroy(krb5_context context, krb5_ccache id)
 #endif
 }
 
-extern krb5_cc_ops krb5_fcc_ops;
+extern const krb5_cc_ops krb5_fcc_ops;
 
 /*
  * Requires:
@@ -2398,7 +2398,7 @@ krb5_fcc_interpret(krb5_context context, int errnum)
     return retval;
 }
 
-krb5_cc_ops krb5_fcc_ops = {
+const krb5_cc_ops krb5_fcc_ops = {
      0,
      "FILE",
      krb5_fcc_get_name,
index 475a605066b384324fab554c2b615fb9ec3142c4..37b9d0368ce5dc5ad9ffd7bac890e114f6c0d47d 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-07  Ken Raeburn  <raeburn@mit.edu>
+
+       * winccld.c (krb5_fcc_ops): Updated decl.
+
 2002-08-29  Ken Raeburn  <raeburn@mit.edu>
 
        * Makefile.in: Revert $(S)=>/ change, for Windows support.
index 1ff75db488cd898ff950895473504c18f18796ff..71c2c9412c5697335f542f7b4c57a7dc64bc4da2 100644 (file)
@@ -10,7 +10,7 @@
 #include "k5-int.h"
 
 /* from fcc-proto.h */
-extern krb5_cc_ops krb5_fcc_ops;
+extern const krb5_cc_ops krb5_fcc_ops;
 
 #define KRB5_WINCCLD_C_
 #include "winccld.h"
index 824ae37b5052c74c0c77e055d07d77fe40531650..30d5e7d4b8e55a813f9a334749c19857f258ab1c 100644 (file)
@@ -233,8 +233,8 @@ static void test_misc(krb5_context context)
   krb5_cc_dfl_ops = ops_save;
 
 }
-extern krb5_cc_ops krb5_mcc_ops;
-extern krb5_cc_ops krb5_fcc_ops;
+extern const krb5_cc_ops krb5_mcc_ops;
+extern const krb5_cc_ops krb5_fcc_ops;
 
 int main (void)
 {