From: Ezra Peisach Date: Wed, 26 Jun 2002 17:31:21 +0000 (+0000) Subject: * appdefault.c (conf_boolean): Change variable from char ** to X-Git-Tag: krb5-1.3-alpha1~633 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6c3b5028ae243b6afbfe96547d08581c4894ce6b;p=krb5.git * appdefault.c (conf_boolean): Change variable from char ** to const char ** to prevent warning of const to non-const. * get_in_tkt.c (_krb5_conf_boolean): Same git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14586 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index ba3eda690..0406fc87f 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,10 @@ +2002-06-26 Ezra Peisach + + * appdefault.c (conf_boolean): Change variable from char ** to + const char ** to prevent warning of const to non-const. + + * get_in_tkt.c (_krb5_conf_boolean): Same + 2002-06-25 Alexandra Ellwood * appdefault.c, get_in_tkt.c: made conf_yes and conf_no const to diff --git a/src/lib/krb5/krb/appdefault.c b/src/lib/krb5/krb/appdefault.c index 5cc73cc91..3f9216228 100644 --- a/src/lib/krb5/krb/appdefault.c +++ b/src/lib/krb5/krb/appdefault.c @@ -23,7 +23,7 @@ static const char *conf_no[] = { static int conf_boolean(s) char *s; { - char **p; + const char **p; for(p=conf_yes; *p; p++) { if (!strcasecmp(*p,s)) return 1; diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 8a08ed72a..81aaf14c9 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -614,7 +614,7 @@ int _krb5_conf_boolean(s) const char *s; { - char **p; + const char **p; for(p=conf_yes; *p; p++) { if (!strcasecmp(*p,s))