aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/timestamp.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-07-22 19:00:55 +0000
committerBruce Momjian <bruce@momjian.us>2005-07-22 19:00:55 +0000
commit3758affc9b229e33f23a81053d65945183ef33e6 (patch)
tree814f268cd560dcacbfe62d6421c3fcd8065e1855 /src/backend/utils/adt/timestamp.c
parentca256f3254b9b8086645605b3f85cdfe002fcd1f (diff)
downloadpostgresql-3758affc9b229e33f23a81053d65945183ef33e6.tar.gz
postgresql-3758affc9b229e33f23a81053d65945183ef33e6.zip
More removal of unneeded parentheses.
Diffstat (limited to 'src/backend/utils/adt/timestamp.c')
-rw-r--r--src/backend/utils/adt/timestamp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/adt/timestamp.c b/src/backend/utils/adt/timestamp.c
index 73edf591f68..73a68a1a22e 100644
--- a/src/backend/utils/adt/timestamp.c
+++ b/src/backend/utils/adt/timestamp.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.140 2005/07/22 15:15:38 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.141 2005/07/22 19:00:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1006,7 +1006,7 @@ timestamp2tm(Timestamp dt, int *tzp, struct pg_tm *tm, fsec_t *fsec, char **tzn,
* specified. Go ahead and rotate to the local time zone since we will
* later bypass any calls which adjust the tm fields.
*/
- if ((attimezone==NULL) && HasCTZSet && (tzp != NULL))
+ if (attimezone == NULL && HasCTZSet && tzp != NULL)
{
#ifdef HAVE_INT64_TIMESTAMP
dt -= CTimeZone * USECS_PER_SEC;
@@ -1059,7 +1059,7 @@ timestamp2tm(Timestamp dt, int *tzp, struct pg_tm *tm, fsec_t *fsec, char **tzn,
* We have a brute force time zone per SQL99? Then use it without
* change since we have already rotated to the time zone.
*/
- if ((attimezone == NULL) && HasCTZSet)
+ if (attimezone == NULL && HasCTZSet)
{
*tzp = CTimeZone;
tm->tm_isdst = 0;
@@ -1102,7 +1102,7 @@ timestamp2tm(Timestamp dt, int *tzp, struct pg_tm *tm, fsec_t *fsec, char **tzn,
tm->tm_isdst = tx->tm_isdst;
tm->tm_gmtoff = tx->tm_gmtoff;
tm->tm_zone = tx->tm_zone;
- *tzp = -(tm->tm_gmtoff);
+ *tzp = -tm->tm_gmtoff;
if (tzn != NULL)
*tzn = (char *) tm->tm_zone;
}
@@ -4146,7 +4146,7 @@ timestamptz_izone(PG_FUNCTION_ARGS)
#ifdef HAVE_INT64_TIMESTAMP
tz = -(zone->time / USECS_PER_SEC);
#else
- tz = -(zone->time);
+ tz = -zone->time;
#endif
result = dt2local(timestamp, tz);