const-ize

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3758 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-11-02 04:13:42 +00:00
parent 66ab938c25
commit d5b19415c7
5 changed files with 8 additions and 8 deletions

View File

@@ -41,7 +41,7 @@
RCSID("$Id$");
krb5_error_code
krb5_cc_register(krb5_context context, krb5_cc_ops *ops, int override)
krb5_cc_register(krb5_context context, const krb5_cc_ops *ops, int override)
{
int i;
if(context->cc_ops == NULL){
@@ -110,7 +110,7 @@ krb5_cc_resolve(krb5_context context,
krb5_error_code
krb5_cc_gen_new(krb5_context context,
krb5_cc_ops *ops,
const krb5_cc_ops *ops,
krb5_ccache *id)
{
krb5_ccache p;
@@ -118,7 +118,7 @@ krb5_cc_gen_new(krb5_context context,
p = malloc (sizeof(*p));
if (p == NULL)
return KRB5_CC_NOMEM;
p->ops = ops;
p->ops = (krb5_cc_ops *)ops;
*id = p;
return p->ops->gen_new(context, id);
}

View File

@@ -365,7 +365,7 @@ fcc_set_flags(krb5_context context,
return 0; /* XXX */
}
krb5_cc_ops krb5_fcc_ops = {
const krb5_cc_ops krb5_fcc_ops = {
"FILE",
fcc_get_name,
fcc_resolve,

View File

@@ -411,8 +411,8 @@ typedef struct _krb5_verify_init_creds_opt {
#define KRB5_VERIFY_INIT_CREDS_OPT_AP_REQ_NOFAIL 0x0001
extern krb5_cc_ops krb5_fcc_ops;
extern krb5_cc_ops krb5_mcc_ops;
extern const krb5_cc_ops krb5_fcc_ops;
extern const krb5_cc_ops krb5_mcc_ops;
#define KRB5_KPASSWD_SUCCESS 0
#define KRB5_KPASSWD_MALFORMED 0

View File

@@ -211,7 +211,7 @@ mcc_set_flags(krb5_context context,
return 0; /* XXX */
}
krb5_cc_ops krb5_mcc_ops = {
const krb5_cc_ops krb5_mcc_ops = {
"MEMORY",
mcc_get_name,
mcc_resolve,

View File

@@ -47,7 +47,7 @@ RCSID("$Id$");
static void
reverse (unsigned char *s)
{
static unsigned char tbl[] = {
static const unsigned char tbl[] = {
0x0,
0x8,
0x4,