From: Kurt Zeilenga Date: Wed, 5 Jul 2000 21:03:57 +0000 (+0000) Subject: Remove lint X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2475 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8484d2c757168ce021a240a02f138a8d4788377a;p=openldap Remove lint --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 4dacfc06e9..b61b1570c1 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -961,9 +961,9 @@ aci_set_gather (void *cookie, char *name, char *attr) if ((ndn = ch_strdup(name)) != NULL) { if (dn_normalize(ndn) != NULL) { - char *text; + const char *text; AttributeDescription *desc = NULL; - if (slap_str2ad(attr, &desc, &text) == 0) { + if (slap_str2ad(attr, &desc, &text) == LDAP_SUCCESS) { backend_attribute(cp->be, NULL /*cp->conn*/, NULL /*cp->op*/, cp->e, ndn, desc, &bvals); @@ -1012,7 +1012,7 @@ aci_match_set ( char *subjdn; char *setat; struct berval **bvals; - char *text; + const char *text; AttributeDescription *desc = NULL; /* format of string is "entry/setAttrName" */ @@ -1032,7 +1032,7 @@ aci_match_set ( } if ( setat != NULL ) { if ( dn_normalize(subjdn) != NULL - && slap_str2ad(setat, &desc, &text) == 0 ) + && slap_str2ad(setat, &desc, &text) == LDAP_SUCCESS ) { backend_attribute(be, NULL, NULL, e, subjdn, desc, &bvals);