From cee78ed04df2a1d91bebb2af6407edef29be6416 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Thu, 19 Aug 2010 08:01:09 -0400 Subject: const correctness made the data type for server consistant and correct across its usage --- ipa-client/ipa-join.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipa-client/ipa-join.c') diff --git a/ipa-client/ipa-join.c b/ipa-client/ipa-join.c index 217ebce1e..d18461f6a 100644 --- a/ipa-client/ipa-join.c +++ b/ipa-client/ipa-join.c @@ -265,7 +265,7 @@ done: } static int -get_subject(const char *ipaserver, char *ldap_base, char **subject) +get_subject(const char *ipaserver, char *ldap_base, const char **subject) { LDAP *ld = NULL; char *attrs[] = {"ipaCertificateSubjectBase", NULL}; @@ -358,7 +358,7 @@ join_ldap(const char *ipaserver, const char *hostname, const char ** binddn, con goto done; } - if (get_subject(ipaserver, ldap_base, &subject) != 0) { + if (get_subject(ipaserver, ldap_base, subject) != 0) { fprintf(stderr, "Unable to determine certificate subject of %s\n", ipaserver); /* Not a critical failure */ } @@ -441,7 +441,7 @@ ldap_done: free(filter); free(search_base); free(ldap_base); - free(subject); + free((void *)*subject); if (ld != NULL) { ldap_unbind_ext(ld, NULL, NULL); } -- cgit