mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -550,7 +550,7 @@ GetLockTagsMethodTable(const LOCKTAG *locktag)
|
||||
uint32
|
||||
LockTagHashCode(const LOCKTAG *locktag)
|
||||
{
|
||||
return get_hash_value(LockMethodLockHash, (const void *) locktag);
|
||||
return get_hash_value(LockMethodLockHash, locktag);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user