summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-04-26 14:47:16 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-04-26 14:47:16 -0400
commitbdf46af748d0f15f257c99bf06e9e25aba6a24f9 (patch)
tree3637d69ad413fdc23098cc2cf94b2cd57fd44dab /src/interfaces/ecpg/preproc
parentf83bf385c1dad4964e0d899174989a1668536182 (diff)
Post-feature-freeze pgindent run.
Discussion: https://postgr.es/m/15719.1523984266@sss.pgh.pa.us
Diffstat (limited to 'src/interfaces/ecpg/preproc')
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.c3
-rw-r--r--src/interfaces/ecpg/preproc/type.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/preproc/ecpg.c b/src/interfaces/ecpg/preproc/ecpg.c
index 8fb731fcfb1..7fdc4ee596b 100644
--- a/src/interfaces/ecpg/preproc/ecpg.c
+++ b/src/interfaces/ecpg/preproc/ecpg.c
@@ -479,7 +479,8 @@ main(int argc, char *const argv[])
}
}
- if (output_filename && out_option == 0) {
+ if (output_filename && out_option == 0)
+ {
free(output_filename);
output_filename = NULL;
}
diff --git a/src/interfaces/ecpg/preproc/type.c b/src/interfaces/ecpg/preproc/type.c
index fa1a05c3025..253873dd4ef 100644
--- a/src/interfaces/ecpg/preproc/type.c
+++ b/src/interfaces/ecpg/preproc/type.c
@@ -611,14 +611,16 @@ ECPGdump_a_struct(FILE *o, const char *name, const char *ind_name, char *arrsize
if (ind_p != NULL && ind_p != &struct_no_indicator)
{
ind_p = ind_p->next;
- if (ind_p == NULL && p->next != NULL) {
+ if (ind_p == NULL && p->next != NULL)
+ {
mmerror(PARSE_ERROR, ET_WARNING, "indicator struct \"%s\" has too few members", ind_name);
ind_p = &struct_no_indicator;
}
}
}
- if (ind_type != NULL && ind_p != NULL && ind_p != &struct_no_indicator) {
+ if (ind_type != NULL && ind_p != NULL && ind_p != &struct_no_indicator)
+ {
mmerror(PARSE_ERROR, ET_WARNING, "indicator struct \"%s\" has too many members", ind_name);
}