name is now const
authorJohn Kohl <jtkohl@mit.edu>
Tue, 27 Nov 1990 11:23:18 +0000 (11:23 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 27 Nov 1990 11:23:18 +0000 (11:23 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1497 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/keytab/ktbase.c

index 9edfec7f52db11f27712faebb63fc91271ac70c4..589ee1322fbbbbcbd3c95dd928eb42d70702fbca 100644 (file)
@@ -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)