diff options
| author | Peter Eisentraut | 2023-02-07 05:53:05 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2023-02-07 05:57:59 +0000 |
| commit | aa6954104644334c53838f181053b9f7aa13f58c (patch) | |
| tree | 10af7e8602cfd6626b163a350960ff9d1875f43a /src/backend/statistics/mcv.c | |
| parent | d9d7fe68d35e1e10c7c8276d07f5abf9c477cb13 (diff) | |
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 <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/fd9adf5d-b1aa-e82f-e4c7-263c30145807%40enterprisedb.com
Diffstat (limited to 'src/backend/statistics/mcv.c')
| -rw-r--r-- | src/backend/statistics/mcv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/statistics/mcv.c b/src/backend/statistics/mcv.c index 2d2a87d3a6f..e21e0e87e41 100644 --- a/src/backend/statistics/mcv.c +++ b/src/backend/statistics/mcv.c @@ -457,7 +457,7 @@ build_distinct_groups(int numrows, SortItem *items, MultiSortSupport mss, Assert(j + 1 == ngroups); /* Sort the distinct groups by frequency (in descending order). */ - qsort_interruptible((void *) groups, ngroups, sizeof(SortItem), + qsort_interruptible(groups, ngroups, sizeof(SortItem), compare_sort_item_count, NULL); *ndistinct = ngroups; @@ -528,7 +528,7 @@ build_column_frequencies(SortItem *groups, int ngroups, } /* sort the values, deduplicate */ - qsort_interruptible((void *) result[dim], ngroups, sizeof(SortItem), + qsort_interruptible(result[dim], ngroups, sizeof(SortItem), sort_item_compare, ssup); /* |
