diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2013-11-10 09:20:52 -0500 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2013-11-10 14:48:29 -0500 |
commit | 001e114b8d59f4eaf2a314a2bc5e57078afdf82f (patch) | |
tree | 606fa622be346ef917886a29aea7e17383e00d31 /src/bin/psql/command.c | |
parent | dca09ac53329e92d73f45674957c26d3d7ae5117 (diff) | |
download | postgresql-001e114b8d59f4eaf2a314a2bc5e57078afdf82f.tar.gz postgresql-001e114b8d59f4eaf2a314a2bc5e57078afdf82f.zip |
Fix whitespace issues found by git diff --check, add gitattributes
Set per file type attributes in .gitattributes to fine-tune whitespace
checks. With the associated cleanups, the tree is now clean for git
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 0b7b8d45b8b..d0e25a9e0a4 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -1041,20 +1041,21 @@ exec_command(const char *cmd, if (!opt0) { - size_t i; - /* list all variables */ - static const char *const my_list[] = { + /* list all variables */ + + int i; + static const char *const my_list[] = { "border", "columns", "expanded", "fieldsep", "footer", "format", "linestyle", "null", "numericlocale", "pager", "recordsep", "tableattr", "title", "tuples_only", - NULL }; - for (i = 0; my_list[i] != NULL; i++) { - printPsetInfo(my_list[i], &pset.popt); - } + NULL + }; - success = true; + for (i = 0; my_list[i] != NULL; i++) + printPsetInfo(my_list[i], &pset.popt); + success = true; } else success = do_pset(opt0, opt1, &pset.popt, pset.quiet); @@ -2432,8 +2433,8 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet) return false; } - if (!quiet) - printPsetInfo(param, &pset.popt); + if (!quiet) + printPsetInfo(param, &pset.popt); return true; } |