patch: change magic constants to DEFINE value for readability.

From: CharSyam <charsyam(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: patch: change magic constants to DEFINE value for readability.
Date: 2015-05-23 02:40:36
Message-ID: CAMrLSE5j_aWfoBDMrSvk14oBKSy+-2cjzNNH_FciirA7Kwo9TA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

in src/backend/utils/misc/tzparser.c

It uses 60 * 60 to represent SECS_PER_HOUR.

and It is already define in other files.

so I think using SECS_PER_HOUR is more clear for readability.

and I attached patch.(it just change 60 * 60 to SECS_PER_HOUR)

What do you think?

Attachment Content-Type Size
magic.patch application/octet-stream 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2015-05-23 05:23:06 Re: Issues in Replication Progress Tracking
Previous Message Eric Ridge 2015-05-23 02:24:56 Re: Change pg_cancel_*() to ignore current backend