summaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
authorAutomatic pgindent2023-04-23 21:50:53 +0000
committerAutomatic pgindent2023-04-23 21:50:53 +0000
commit962df08da11205a2436c7e802fa16cd47b8a790e (patch)
tree0338f441a66bc0c76bb37b7dfb590dd04c27bbf4 /src/bin/psql/command.c
parent8bbd0cce92be98de9f4f727b8bf66fe26e5831ea (diff)
Automatic pgindentmaster-pgindent
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 97f7d97220..5818a2e79e 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -4511,7 +4511,7 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
/* header line width in expanded mode */
else if (strcmp(param, "xheader_width") == 0)
{
- if (! value)
+ if (!value)
;
else if (pg_strcasecmp(value, "full") == 0)
popt->topt.expanded_header_width_type = PRINT_XHEADER_FULL;
@@ -5059,15 +5059,16 @@ pset_value_string(const char *param, printQueryOpt *popt)
else if (strcmp(param, "xheader_width") == 0)
{
if (popt->topt.expanded_header_width_type == PRINT_XHEADER_FULL)
- return(pstrdup("full"));
+ return (pstrdup("full"));
else if (popt->topt.expanded_header_width_type == PRINT_XHEADER_COLUMN)
- return(pstrdup("column"));
+ return (pstrdup("column"));
else if (popt->topt.expanded_header_width_type == PRINT_XHEADER_PAGE)
- return(pstrdup("page"));
+ return (pstrdup("page"));
else
{
/* must be PRINT_XHEADER_EXACT_WIDTH */
- char wbuff[32];
+ char wbuff[32];
+
snprintf(wbuff, sizeof(wbuff), "%d",
popt->topt.expanded_header_exact_width);
return pstrdup(wbuff);