aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-07-16 13:23:53 +0900
committerMichael Paquier <michael@paquier.xyz>2019-07-16 13:23:53 +0900
commit0896ae561b6c799d45cb61d8a3b18fbb442130a7 (patch)
treecf4204ef18047e3c1eac4e9daa320156b106a374 /src/interfaces
parent4c3d05d875dd173a81a995c6e14d69496b467eec (diff)
downloadpostgresql-0896ae561b6c799d45cb61d8a3b18fbb442130a7.tar.gz
postgresql-0896ae561b6c799d45cb61d8a3b18fbb442130a7.zip
Fix inconsistencies and typos in the tree
This is numbered take 7, and addresses a set of issues around: - Fixes for typos and incorrect reference names. - Removal of unneeded comments. - Removal of unreferenced functions and structures. - Fixes regarding variable name consistency. Author: Alexander Lakhin Discussion: https://postgr.es/m/10bfd4ac-3e7c-40ab-2b2e-355ed15495e8@gmail.com
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c2
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
index 13058cf7bf7..8fc0a467f7f 100644
--- a/src/interfaces/ecpg/compatlib/informix.c
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -811,7 +811,7 @@ rfmtlong(long lng_val, const char *fmt, char *outbuf)
/* and fill the temp-string wit '0's up to there. */
dotpos = getRightMostDot(fmt);
- /* start to parse the formatstring */
+ /* start to parse the format-string */
temp[0] = '\0';
k = value.digits - 1; /* position in the value_string */
for (i = fmt_len - 1, j = 0; i >= 0; i--, j++)
diff --git a/src/interfaces/ecpg/pgtypeslib/dt_common.c b/src/interfaces/ecpg/pgtypeslib/dt_common.c
index 4c2828db842..e71defaa66a 100644
--- a/src/interfaces/ecpg/pgtypeslib/dt_common.c
+++ b/src/interfaces/ecpg/pgtypeslib/dt_common.c
@@ -172,7 +172,7 @@ static const datetkn datetktbl[] = {
ghst
#endif
{"gilt", TZ, 43200}, /* Gilbert Islands Time */
- {"gmt", TZ, 0}, /* Greenwish Mean Time */
+ {"gmt", TZ, 0}, /* Greenwich Mean Time */
{"gst", TZ, 36000}, /* Guam Std Time, USSR Zone 9 */
{"gyt", TZ, -14400}, /* Guyana Time */
{"h", UNITS, DTK_HOUR}, /* "hour" */