needlessly casting away const in localtime.c

From: Mark Dilger <hornschnorter(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: needlessly casting away const in localtime.c
Date: 2016-09-20 21:02:34
Message-ID: 3A6A7CE0-1F23-49F5-BFCF-BDA0727B7DAA@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Friends, per the recent thread "gratuitous casting away const", the
assignment on line 1247 of localtime.c has const lvalue and rvalue,
yet casts through (char *) rather than (const char *). Fix attached.

Mark Dilger

Attachment Content-Type Size
localtime.c.patch application/octet-stream 447 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-09-20 21:13:30 Re: needlessly casting away const in localtime.c
Previous Message Andres Freund 2016-09-20 20:42:01 Re: increasing the default WAL segment size