Re: needlessly casting away const in localtime.c - Mailing list pgsql-hackers

From Tom Lane
Subject Re: needlessly casting away const in localtime.c
Date
Msg-id 21101.1474406010@sss.pgh.pa.us
Whole thread Raw
In response to needlessly casting away const in localtime.c  (Mark Dilger <hornschnorter@gmail.com>)
List pgsql-hackers
Mark Dilger <hornschnorter@gmail.com> writes:
> 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.

If you want to propose cosmetic improvements in localtime.c, or the
majority of the other stuff in src/timezone, you need to send it to
the IANA folk.  Otherwise it'll just be lost next time we sync with
them.  See src/timezone/README.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: needlessly casting away const in localtime.c
Next
From: Mark Dilger
Date:
Subject: Re: gratuitous casting away const