mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Remove useless casts to (void *) in arguments of some system functions
The affected functions are: bsearch, memcmp, memcpy, memset, memmove, qsort, repalloc Reviewed-by: Corey Huinker <corey.huinker@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/fd9adf5d-b1aa-e82f-e4c7-263c30145807%40enterprisedb.com
This commit is contained in:
@@ -853,11 +853,11 @@ tbm_prepare_shared_iterate(TIDBitmap *tbm)
|
||||
if (ptbase != NULL)
|
||||
pg_atomic_init_u32(&ptbase->refcount, 0);
|
||||
if (npages > 1)
|
||||
qsort_arg((void *) (ptpages->index), npages, sizeof(int),
|
||||
tbm_shared_comparator, (void *) ptbase->ptentry);
|
||||
qsort_arg(ptpages->index, npages, sizeof(int),
|
||||
tbm_shared_comparator, ptbase->ptentry);
|
||||
if (nchunks > 1)
|
||||
qsort_arg((void *) (ptchunks->index), nchunks, sizeof(int),
|
||||
tbm_shared_comparator, (void *) ptbase->ptentry);
|
||||
qsort_arg(ptchunks->index, nchunks, sizeof(int),
|
||||
tbm_shared_comparator, ptbase->ptentry);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user