diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-07-12 00:44:38 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-07-12 00:44:38 +0000 |
| commit | 960af47efdc1670ef90bb1f19e03cd9469bb636b (patch) | |
| tree | a02fe1f1f67bfcf083117315823fec104ab80b6a /src/include/utils/formatting.h | |
| parent | 27cb66fdfe862f395cefa0d498b681ce142f59d8 (diff) | |
| download | postgresql-960af47efdc1670ef90bb1f19e03cd9469bb636b.tar.gz | |
Const-ify the arguments of str_tolower() and friends to suppress compile
warnings. Clean up various unneeded cruft that was left behind after
creating those routines. Introduce some convenience functions str_tolower_z
etc to eliminate tedious and error-prone double arguments in formatting.c.
(Currently there seems no need to export the latter, but maybe reconsider
this later.)
Diffstat (limited to 'src/include/utils/formatting.h')
| -rw-r--r-- | src/include/utils/formatting.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/utils/formatting.h b/src/include/utils/formatting.h index 0674adfa8a..4389ddb39a 100644 --- a/src/include/utils/formatting.h +++ b/src/include/utils/formatting.h @@ -2,7 +2,7 @@ /* ----------------------------------------------------------------------- * formatting.h * - * $PostgreSQL: pgsql/src/include/utils/formatting.h,v 1.19 2008/06/23 19:27:19 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/formatting.h,v 1.20 2008/07/12 00:44:38 tgl Exp $ * * * Portions Copyright (c) 1999-2008, PostgreSQL Global Development Group @@ -21,9 +21,9 @@ #include "fmgr.h" -extern char *str_tolower(char *buff, size_t nbytes); -extern char *str_toupper(char *buff, size_t nbytes); -extern char *str_initcap(char *buff, size_t nbytes); +extern char *str_tolower(const char *buff, size_t nbytes); +extern char *str_toupper(const char *buff, size_t nbytes); +extern char *str_initcap(const char *buff, size_t nbytes); extern Datum timestamp_to_char(PG_FUNCTION_ARGS); extern Datum timestamptz_to_char(PG_FUNCTION_ARGS); |
