Re: Modernize const handling with readline

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Aleksander Alekseev <aleksander@timescale.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-10-05T06:57:51Z
Lists: pgsql-hackers
On 04.10.23 17:09, Aleksander Alekseev wrote:
> Hi,
> 
>> On 03.10.23 13:28, Aleksander Alekseev wrote:
>>> While examining the code for similar places I noticed that the
>>> following functions can also be const'ified:
>>>
>>> - crc32_sz
>>
>> I suppose this could be changed.
> 
> OK, that's a simple change. Here is the patch.

committed this and my patch




Commits

  1. Add const qualifiers to XLogRegister*() functions

  2. Constify crc32_sz

  3. Modernize const handling with readline