fix const warning

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15794 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-07-27 19:21:50 +00:00
parent cbf73d7f8f
commit 8e29b2d8f8

View File

@@ -1339,7 +1339,7 @@ _hx509_query_match_cert(const hx509_query *q, hx509_cert cert)
return 0;
}
if (q->match & HX509_QUERY_MATCH_FRIENDLY_NAME) {
char *name = hx509_cert_get_friendly_name(cert);
const char *name = hx509_cert_get_friendly_name(cert);
if (name == NULL)
return 0;
if (strcasecmp(q->friendlyname, name) != 0)