mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +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:
@@ -176,7 +176,7 @@ SortAndUniqItems(TSQuery q, int *size)
|
||||
if (*size < 2)
|
||||
return res;
|
||||
|
||||
qsort_arg(res, *size, sizeof(QueryOperand *), compareQueryOperand, (void *) operand);
|
||||
qsort_arg(res, *size, sizeof(QueryOperand *), compareQueryOperand, operand);
|
||||
|
||||
ptr = res + 1;
|
||||
prevptr = res;
|
||||
@@ -804,7 +804,7 @@ get_docrep(TSVector txt, QueryRepresentation *qr, int *doclen)
|
||||
/*
|
||||
* Sort representation in ascending order by pos and entry
|
||||
*/
|
||||
qsort((void *) doc, cur, sizeof(DocRepresentation), compareDocR);
|
||||
qsort(doc, cur, sizeof(DocRepresentation), compareDocR);
|
||||
|
||||
/*
|
||||
* Join QueryItem per WordEntry and it's position
|
||||
|
||||
Reference in New Issue
Block a user