From 52f77df613cea1803ce86321c37229626d9f213c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 12 Apr 2000 17:17:23 +0000 Subject: Ye-old pgindent run. Same 4-space tabs. --- contrib/datetime/datetime_functions.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'contrib/datetime/datetime_functions.c') 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: */ -- cgit v1.2.3