diff options
author | Ken Raeburn <raeburn@mit.edu> | 2003-01-08 03:51:03 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2003-01-08 03:51:03 +0000 |
commit | 1ab164c46e3276f2b5056727f4118b17aa040c71 (patch) | |
tree | dfae55e687c14da7436b29b8320bd488cbacd1c2 /src/lib/krb5 | |
parent | fe7af2a64a45687e8bc7cbebe1317e9de1681293 (diff) | |
download | krb5-1ab164c46e3276f2b5056727f4118b17aa040c71.zip krb5-1ab164c46e3276f2b5056727f4118b17aa040c71.tar.gz krb5-1ab164c46e3276f2b5056727f4118b17aa040c71.tar.bz2 |
More const for ops tables
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15094 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5')
-rw-r--r-- | src/lib/krb5/ccache/ChangeLog | 4 | ||||
-rw-r--r-- | src/lib/krb5/ccache/cc_file.c | 4 | ||||
-rw-r--r-- | src/lib/krb5/ccache/cc_memory.c | 4 | ||||
-rw-r--r-- | src/lib/krb5/ccache/ccbase.c | 2 | ||||
-rw-r--r-- | src/lib/krb5/ccache/fcc.h | 2 |
5 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog index 3fd7b3e..038a1ce 100644 --- a/src/lib/krb5/ccache/ChangeLog +++ b/src/lib/krb5/ccache/ChangeLog @@ -1,5 +1,9 @@ 2003-01-07 Ken Raeburn <raeburn@mit.edu> + * cc_file.c (krb5_cc_file_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. 2002-09-03 Ken Raeburn <raeburn@mit.edu> diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c index f2ebe15..62ca411 100644 --- a/src/lib/krb5/ccache/cc_file.c +++ b/src/lib/krb5/ccache/cc_file.c @@ -201,7 +201,7 @@ static krb5_error_code krb5_fcc_skip_principal static krb5_error_code KRB5_CALLCONV krb5_fcc_set_flags (krb5_context, krb5_ccache id, krb5_flags flags); -extern krb5_cc_ops krb5_cc_file_ops; +extern const krb5_cc_ops krb5_cc_file_ops; krb5_error_code krb5_change_cache (void); @@ -2458,7 +2458,7 @@ krb5_get_notification_message (void) #endif /* _WIN32 */ -krb5_cc_ops krb5_cc_file_ops = { +const krb5_cc_ops krb5_cc_file_ops = { 0, "FILE", krb5_fcc_get_name, diff --git a/src/lib/krb5/ccache/cc_memory.c b/src/lib/krb5/ccache/cc_memory.c index 99c42f5..97ec327 100644 --- a/src/lib/krb5/ccache/cc_memory.c +++ b/src/lib/krb5/ccache/cc_memory.c @@ -80,7 +80,7 @@ krb5_error_code KRB5_CALLCONV krb5_mcc_store krb5_error_code KRB5_CALLCONV krb5_mcc_set_flags (krb5_context, krb5_ccache id , krb5_flags flags ); -extern krb5_cc_ops krb5_mcc_ops; +extern const krb5_cc_ops krb5_mcc_ops; krb5_error_code krb5_change_cache (void); #define KRB5_OK 0 @@ -538,7 +538,7 @@ krb5_mcc_set_flags(krb5_context context, krb5_ccache id, krb5_flags flags) #define NEED_WINDOWS -krb5_cc_ops krb5_mcc_ops = { +const krb5_cc_ops krb5_mcc_ops = { 0, "MEMORY", krb5_mcc_get_name, diff --git a/src/lib/krb5/ccache/ccbase.c b/src/lib/krb5/ccache/ccbase.c index c4c312b..ddd5e80 100644 --- a/src/lib/krb5/ccache/ccbase.c +++ b/src/lib/krb5/ccache/ccbase.c @@ -34,7 +34,7 @@ struct krb5_cc_typelist krb5_cc_ops *ops; struct krb5_cc_typelist *next; }; -extern krb5_cc_ops krb5_mcc_ops; +extern const krb5_cc_ops krb5_mcc_ops; static struct krb5_cc_typelist cc_entry = { &krb5_mcc_ops, NULL }; diff --git a/src/lib/krb5/ccache/fcc.h b/src/lib/krb5/ccache/fcc.h index 7f91fd8..4f8a815 100644 --- a/src/lib/krb5/ccache/fcc.h +++ b/src/lib/krb5/ccache/fcc.h @@ -35,7 +35,7 @@ #include "k5-int.h" #include <stdio.h> -extern krb5_cc_ops krb5_cc_file_ops; +extern const krb5_cc_ops krb5_cc_file_ops; #define KRB5_OK 0 |