remove compiler warning

This commit is contained in:
leitner
2024-11-26 16:23:35 +00:00
parent a4a0d74dda
commit 87187a76ea

View File

@@ -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<len; ++i)