From 87187a76ea0decd04dd65a85d5f56dac707799ea Mon Sep 17 00:00:00 2001 From: leitner Date: Tue, 26 Nov 2024 16:23:35 +0000 Subject: [PATCH] remove compiler warning --- tinyldap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyldap.c b/tinyldap.c index a8d7de1..32d2e16 100644 --- a/tinyldap.c +++ b/tinyldap.c @@ -653,7 +653,7 @@ static inline int isset(struct bitfield* b,size_t bit) { * for all records that match the value in s. Set the corresponding * bits to 1 in bitfield. */ static void tagmatches(uint32* index,size_t elements,struct string* s, - struct bitfield* b,int (*match)(struct string* s,const char* c), + struct bitfield* b,int (*match)(const struct string* s,const char* c), uint32 index_type,enum FilterType ft) { uint32 bottom=0; uint32 top=elements-1; @@ -2430,7 +2430,7 @@ static int matchhashnode(struct hashnode* hn,struct SearchRequest* sr) { return 0; switch (sr->scope) { case wholeSubtree: break; - case baseObject: if (len==sr->baseObject.l) break; return 0; + case baseObjectOnly: if (len==sr->baseObject.l) break; return 0; default: c=hn->dn+bstrstart((char*)hn->dn); for (i=0; i