diff options
| author | Tom Lane | 2009-05-26 02:17:50 +0000 |
|---|---|---|
| committer | Tom Lane | 2009-05-26 02:17:50 +0000 |
| commit | 99bf328237d89e0fd22821a940d4af0506353218 (patch) | |
| tree | aeed09d9ca32b894070046f6d32ef98280107c21 /src/include | |
| parent | 8af641ac1f5c6972f9f282c1ab54f6fe4ed05a52 (diff) | |
Remove the useless and rather inconsistent return values of EncodeDateOnly,
EncodeTimeOnly, EncodeDateTime, EncodeInterval. These don't have any good
reason to fail, and their callers were mostly not checking anyway.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/datetime.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index 21ebfaca05b..0704e60c919 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/datetime.h,v 1.72 2009/01/01 17:24:02 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/datetime.h,v 1.73 2009/05/26 02:17:50 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -299,10 +299,10 @@ extern void DateTimeParseError(int dterr, const char *str, extern int DetermineTimeZoneOffset(struct pg_tm * tm, pg_tz *tzp); -extern int EncodeDateOnly(struct pg_tm * tm, int style, char *str); -extern int EncodeTimeOnly(struct pg_tm * tm, fsec_t fsec, int *tzp, int style, char *str); -extern int EncodeDateTime(struct pg_tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, char *str); -extern int EncodeInterval(struct pg_tm * tm, fsec_t fsec, int style, char *str); +extern void EncodeDateOnly(struct pg_tm * tm, int style, char *str); +extern void EncodeTimeOnly(struct pg_tm * tm, fsec_t fsec, int *tzp, int style, char *str); +extern void EncodeDateTime(struct pg_tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, char *str); +extern void EncodeInterval(struct pg_tm * tm, fsec_t fsec, int style, char *str); extern int DecodeSpecial(int field, char *lowtoken, int *val); extern int DecodeUnits(int field, char *lowtoken, int *val); |
