From: Ken Raeburn Date: Wed, 8 Jan 2003 03:55:40 +0000 (+0000) Subject: More const for ops tables X-Git-Tag: krb5-1.3-alpha1~181 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fdb1be2db1102485946fb9d6ff2d309830325bef;p=krb5.git More const for ops tables git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15096 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog index 038a1ce51..3cb606700 100644 --- a/src/lib/krb5/ccache/ChangeLog +++ b/src/lib/krb5/ccache/ChangeLog @@ -1,10 +1,11 @@ 2003-01-07 Ken Raeburn - * 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 diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c index 62ca411f2..eb051c150 100644 --- a/src/lib/krb5/ccache/cc_file.c +++ b/src/lib/krb5/ccache/cc_file.c @@ -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, diff --git a/src/lib/krb5/ccache/ccapi/ChangeLog b/src/lib/krb5/ccache/ccapi/ChangeLog index 475a60506..37b9d0368 100644 --- a/src/lib/krb5/ccache/ccapi/ChangeLog +++ b/src/lib/krb5/ccache/ccapi/ChangeLog @@ -1,3 +1,7 @@ +2003-01-07 Ken Raeburn + + * winccld.c (krb5_fcc_ops): Updated decl. + 2002-08-29 Ken Raeburn * Makefile.in: Revert $(S)=>/ change, for Windows support. diff --git a/src/lib/krb5/ccache/ccapi/winccld.c b/src/lib/krb5/ccache/ccapi/winccld.c index 1ff75db48..71c2c9412 100644 --- a/src/lib/krb5/ccache/ccapi/winccld.c +++ b/src/lib/krb5/ccache/ccapi/winccld.c @@ -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" diff --git a/src/lib/krb5/ccache/t_cc.c b/src/lib/krb5/ccache/t_cc.c index 824ae37b5..30d5e7d4b 100644 --- a/src/lib/krb5/ccache/t_cc.c +++ b/src/lib/krb5/ccache/t_cc.c @@ -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) {