From 1cd701571af4a234ed250f2fe31c6fbc417c06ca Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 27 Nov 1990 11:23:18 +0000 Subject: [PATCH] name is now const git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1497 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/keytab/ktbase.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/keytab/ktbase.c b/src/lib/krb5/keytab/ktbase.c index 9edfec7f5..589ee1322 100644 --- a/src/lib/krb5/keytab/ktbase.c +++ b/src/lib/krb5/keytab/ktbase.c @@ -61,7 +61,7 @@ krb5_kt_ops *ops; */ krb5_error_code krb5_kt_resolve (name, ktid) - char *name; + const char *name; krb5_keytab *ktid; { struct krb5_kt_typelist *tlist; @@ -72,8 +72,8 @@ krb5_error_code krb5_kt_resolve (name, ktid) if (!cp) return KRB5_KT_BADNAME; - pfxlen = cp - name; - resid = name + pfxlen + 1; + pfxlen = cp - (char *)name; + resid = (char *)name + pfxlen + 1; pfx = malloc (pfxlen+1); if (!pfx) -- 2.26.2