Remove some useless casts to (void *) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Remove some useless casts to (void *)
Date
Msg-id fd9adf5d-b1aa-e82f-e4c7-263c30145807@enterprisedb.com
Whole thread Raw
Responses Re: Remove some useless casts to (void *)
List 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.
Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Move defaults toward ICU in 16?
Next
From: Nathan Bossart
Date:
Subject: Re: Weird failure with latches in curculio on v15