diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-04-26 14:47:16 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-04-26 14:47:16 -0400 |
commit | bdf46af748d0f15f257c99bf06e9e25aba6a24f9 (patch) | |
tree | 3637d69ad413fdc23098cc2cf94b2cd57fd44dab /src/interfaces/ecpg/preproc | |
parent | f83bf385c1dad4964e0d899174989a1668536182 (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.c | 3 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/type.c | 6 |
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); } |