1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

Fix compile of entab to use stdarg.h. Clean up includes.

Marko Kreen
This commit is contained in:
Bruce Momjian
2005-05-27 15:15:31 +00:00
parent a4374f9070
commit 22f0303023
5 changed files with 35 additions and 37 deletions

View File

@@ -511,7 +511,7 @@ EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str)
sprintf(cp, ".%06d", Abs(fsec));
#else
fsec += tm->tm_sec;
sprintf(cp, ":%013.10f", fabs(fsec));
sprintf(cp, ":%012.9f", fabs(fsec));
#endif
TrimTrailingZeros(cp);
cp += strlen(cp);