aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/help.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-03-22 04:01:46 +0000
committerBruce Momjian <bruce@momjian.us>2001-03-22 04:01:46 +0000
commit9e1552607a9dc6bc23e43d46770a9063ade4f3f0 (patch)
tree6a230d81917ebc004e40cd46c48f2aa27eec153e /src/bin/psql/help.c
parent6cf8707b828b14b5c2336076ce358b18b67829d6 (diff)
downloadpostgresql-9e1552607a9dc6bc23e43d46770a9063ade4f3f0.tar.gz
postgresql-9e1552607a9dc6bc23e43d46770a9063ade4f3f0.zip
pgindent run. Make it all clean.
Diffstat (limited to 'src/bin/psql/help.c')
-rw-r--r--src/bin/psql/help.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 5454210c02c..10392766512 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.36 2001/02/10 02:31:28 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.37 2001/03/22 04:00:20 momjian Exp $
*/
#include "postgres_fe.h"
#include "help.h"
@@ -265,11 +265,11 @@ helpSQL(const char *topic)
for (i = 0; i < items_per_column; i++)
{
printf(" %-26s%-26s",
- VALUE_OR_NULL(QL_HELP[i].cmd),
- VALUE_OR_NULL(QL_HELP[i + items_per_column].cmd));
+ VALUE_OR_NULL(QL_HELP[i].cmd),
+ VALUE_OR_NULL(QL_HELP[i + items_per_column].cmd));
if (i + 2 * items_per_column < QL_HELP_COUNT)
printf("%-26s",
- VALUE_OR_NULL(QL_HELP[i + 2 * items_per_column].cmd));
+ VALUE_OR_NULL(QL_HELP[i + 2 * items_per_column].cmd));
fputc('\n', stdout);
}
}
@@ -278,11 +278,11 @@ helpSQL(const char *topic)
{
int i;
bool help_found = false;
- size_t len;
+ size_t len;
/* don't care about trailing spaces */
len = strlen(topic);
- while (topic[len-1] == ' ')
+ while (topic[len - 1] == ' ')
len--;
for (i = 0; QL_HELP[i].cmd; i++)
@@ -302,7 +302,7 @@ helpSQL(const char *topic)
}
if (!help_found)
- printf("No help available for '%-.*s'.\nTry \\h with no arguments to see available help.\n", (int)len, topic);
+ printf("No help available for '%-.*s'.\nTry \\h with no arguments to see available help.\n", (int) len, topic);
}
}