Remove some useless casts to (void *)
От
Peter Eisentraut
Тема
Remove some useless casts to (void *)
Дата
Msg-id
fd9adf5d-b1aa-e82f-e4c7-263c30145807@enterprisedb.com
Список
Дерево обсуждения
Remove some useless casts to (void *) Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Remove some useless casts to (void *) Corey Huinker <corey.huinker@gmail.com>
Re: Remove some useless casts to (void *) Peter Eisentraut <peter.eisentraut@enterprisedb.com>
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 по дате отправления