1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

Remove useless casts to (const void *)

Similar to commit 7f798aca1d, but I didn't think to look for "const"
as well.
This commit is contained in:
Peter Eisentraut
2024-12-06 17:22:19 +01:00
parent 1319997df9
commit 8743ea1b2e
4 changed files with 6 additions and 6 deletions

View File

@ -4292,7 +4292,7 @@ DropRelationsAllBuffers(SMgrRelation *smgr_reln, int nlocators)
RelFileLocator locator;
locator = BufTagGetRelFileLocator(&bufHdr->tag);
rlocator = bsearch((const void *) &(locator),
rlocator = bsearch(&locator,
locators, n, sizeof(RelFileLocator),
rlocator_comparator);
}
@ -4646,7 +4646,7 @@ FlushRelationsAllBuffers(SMgrRelation *smgrs, int nrels)
RelFileLocator rlocator;
rlocator = BufTagGetRelFileLocator(&bufHdr->tag);
srelent = bsearch((const void *) &(rlocator),
srelent = bsearch(&rlocator,
srels, nrels, sizeof(SMgrSortArray),
rlocator_comparator);
}