From 001e114b8d59f4eaf2a314a2bc5e57078afdf82f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 10 Nov 2013 09:20:52 -0500 Subject: 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 --- src/bin/psql/command.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/bin/psql/command.c') 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; } -- cgit v1.2.3