ldap/servers/slapd/attrsyntax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit b5676abcf8c5cef686438a53a6514d562f6737dc Author: Nathan Kinder nkinder@redhat.com Date: Tue Oct 22 17:57:32 2013 -0700
Ticket 47569 - Fix build warnings
The previous commit for this ticket introduced some build warnings. This patch corrects the build warnings. (cherry picked from commit 01df89d34528a4551e079973a78586c87d521ba1)
diff --git a/ldap/servers/slapd/attrsyntax.c b/ldap/servers/slapd/attrsyntax.c index a08ea96..6386fbe 100644 --- a/ldap/servers/slapd/attrsyntax.c +++ b/ldap/servers/slapd/attrsyntax.c @@ -542,14 +542,14 @@ attr_syntax_exists(const char *attr_name) int free_attr = 0;
/* Ignore any attribute subtypes. */ - if (p = strchr(attr_name, ';')) { + if ((p = strchr(attr_name, ';'))) { int check_attr_len = p - attr_name + 1;
check_attr_name = (char *)slapi_ch_malloc(check_attr_len); PR_snprintf(check_attr_name, check_attr_len, "%s", attr_name); free_attr = 1; } else { - check_attr_name = attr_name; + check_attr_name = (char *)attr_name; }
asi = attr_syntax_get_by_name(check_attr_name);
389-commits@lists.fedoraproject.org