aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-09-11 20:54:55 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-11-04 12:01:12 -0400
commit4703a480a9e15f8b8b481dac44f2e36a4a687fe4 (patch)
tree76b0feb1a938d2e5aba725d466f981406622c0ff /src
parentd6148e7d44e91cac8bd21d8c6d3aaaf1eed10486 (diff)
downloadpostgresql-4703a480a9e15f8b8b481dac44f2e36a4a687fe4.tar.gz
postgresql-4703a480a9e15f8b8b481dac44f2e36a4a687fe4.zip
ecpg: Use bool instead of int
Use "bool" for Boolean variables, rather than "int", matching backend change f505edace12655f3491b9c91991731e2b6bf1f0b. Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt_common.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/interfaces/ecpg/pgtypeslib/dt_common.c b/src/interfaces/ecpg/pgtypeslib/dt_common.c
index 59b69d917bc..be72fce8c5d 100644
--- a/src/interfaces/ecpg/pgtypeslib/dt_common.c
+++ b/src/interfaces/ecpg/pgtypeslib/dt_common.c
@@ -1089,7 +1089,7 @@ dt2time(double jd, int *hour, int *min, int *sec, fsec_t *fsec)
*/
static int
DecodeNumberField(int len, char *str, int fmask,
- int *tmask, struct tm *tm, fsec_t *fsec, int *is2digits)
+ int *tmask, struct tm *tm, fsec_t *fsec, bool *is2digits)
{
char *cp;
@@ -1199,7 +1199,7 @@ DecodeNumberField(int len, char *str, int fmask,
*/
static int
DecodeNumber(int flen, char *str, int fmask,
- int *tmask, struct tm *tm, fsec_t *fsec, int *is2digits, bool EuroDates)
+ int *tmask, struct tm *tm, fsec_t *fsec, bool *is2digits, bool EuroDates)
{
int val;
char *cp;
@@ -1314,8 +1314,8 @@ DecodeDate(char *str, int fmask, int *tmask, struct tm *tm, bool EuroDates)
int nf = 0;
int i,
len;
- int bc = FALSE;
- int is2digits = FALSE;
+ bool bc = FALSE;
+ bool is2digits = FALSE;
int type,
val,
dmask = 0;
@@ -1792,9 +1792,9 @@ DecodeDateTime(char **field, int *ftype, int nf,
int i;
int val;
int mer = HR24;
- int haveTextMonth = FALSE;
- int is2digits = FALSE;
- int bc = FALSE;
+ bool haveTextMonth = FALSE;
+ bool is2digits = FALSE;
+ bool bc = FALSE;
int t = 0;
int *tzp = &t;