diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-04-12 17:17:23 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-04-12 17:17:23 +0000 |
commit | 52f77df613cea1803ce86321c37229626d9f213c (patch) | |
tree | bd9ac9f667f295cb65f4c448a5bb5a062d656b27 /contrib/datetime/datetime_functions.c | |
parent | db4518729d85da83eafdacbcebaeb12618517595 (diff) | |
download | postgresql-52f77df613cea1803ce86321c37229626d9f213c.tar.gz postgresql-52f77df613cea1803ce86321c37229626d9f213c.zip |
Ye-old pgindent run. Same 4-space tabs.
Diffstat (limited to 'contrib/datetime/datetime_functions.c')
-rw-r--r-- | contrib/datetime/datetime_functions.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/contrib/datetime/datetime_functions.c b/contrib/datetime/datetime_functions.c index c5b8bc25e9d..47991a8646d 100644 --- a/contrib/datetime/datetime_functions.c +++ b/contrib/datetime/datetime_functions.c @@ -36,7 +36,7 @@ * Decode time string 00:00:00 through 24:00:00. */ static int -decode_24h_time(char *str, struct tm *tm, double *fsec) +decode_24h_time(char *str, struct tm * tm, double *fsec) { char *cp; @@ -51,9 +51,7 @@ decode_24h_time(char *str, struct tm *tm, double *fsec) *fsec = 0; } else if (*cp != ':') - { return -1; - } else { str = cp + 1; @@ -72,10 +70,10 @@ decode_24h_time(char *str, struct tm *tm, double *fsec) } /* do a sanity check */ - if ( (tm->tm_hour < 0) || (tm->tm_hour > 24) - || (tm->tm_min < 0) || (tm->tm_min > 59) - || (tm->tm_sec < 0) || (tm->tm_sec > 59) - || (*fsec < 0) ) + if ((tm->tm_hour < 0) || (tm->tm_hour > 24) + || (tm->tm_min < 0) || (tm->tm_min > 59) + || (tm->tm_sec < 0) || (tm->tm_sec > 59) + || (*fsec < 0)) return -1; return 0; @@ -265,7 +263,7 @@ currentdate() int4 date2mjd(DateADT val) { - int result; + int result; result = val + JDATE_2000 - 2400000.5; @@ -276,8 +274,8 @@ date2mjd(DateADT val) /* * Local Variables: - * tab-width: 4 - * c-indent-level: 4 - * c-basic-offset: 4 + * tab-width: 4 + * c-indent-level: 4 + * c-basic-offset: 4 * End: */ |