Remove some useless casts to (void *)

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Remove some useless casts to (void *)
Дата
Msg-id fd9adf5d-b1aa-e82f-e4c7-263c30145807@enterprisedb.com
обсуждение исходный текст
Ответы Re: Remove some useless casts to (void *)
Список pgsql-hackers
I have found that in some corners of the code some calls to standard C 
functions are decorated with casts to (void *) for no reason, and this 
code pattern then gets copied around.  I have gone through and cleaned 
this up a bit, in the attached patches.

The involved functions are: repalloc, memcpy, memset, memmove, memcmp, 
qsort, bsearch

Also hash_search(), for which there was a historical reason (the 
argument used to be char *), but not anymore.
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Move defaults toward ICU in 16?
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: Weird failure with latches in curculio on v15