diff options
Diffstat (limited to 'src/bin/scripts')
-rw-r--r-- | src/bin/scripts/clusterdb.c | 8 | ||||
-rw-r--r-- | src/bin/scripts/common.c | 4 | ||||
-rw-r--r-- | src/bin/scripts/createlang.c | 4 | ||||
-rw-r--r-- | src/bin/scripts/droplang.c | 6 | ||||
-rw-r--r-- | src/bin/scripts/vacuumdb.c | 8 |
5 files changed, 13 insertions, 17 deletions
diff --git a/src/bin/scripts/clusterdb.c b/src/bin/scripts/clusterdb.c index adbb4b4248f..857b56bb723 100644 --- a/src/bin/scripts/clusterdb.c +++ b/src/bin/scripts/clusterdb.c @@ -4,7 +4,7 @@ * * Portions Copyright (c) 2002-2004, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/scripts/clusterdb.c,v 1.10 2004/08/29 04:13:03 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/clusterdb.c,v 1.11 2004/08/29 05:06:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -14,13 +14,11 @@ #include "dumputils.h" -static void -cluster_one_database(const char *dbname, const char *table, +static void cluster_one_database(const char *dbname, const char *table, const char *host, const char *port, const char *username, bool password, const char *progname, bool echo, bool quiet); -static void -cluster_all_databases(const char *host, const char *port, +static void cluster_all_databases(const char *host, const char *port, const char *username, bool password, const char *progname, bool echo, bool quiet); diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c index 42d9496ad4f..7fe8b406018 100644 --- a/src/bin/scripts/common.c +++ b/src/bin/scripts/common.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.10 2004/08/29 04:13:03 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.11 2004/08/29 05:06:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -35,7 +35,7 @@ get_user_name(const char *progname) return pw->pw_name; #else static char username[128]; /* remains after function exit */ - DWORD len = sizeof(username)-1; + DWORD len = sizeof(username) - 1; if (!GetUserName(username, &len)) { diff --git a/src/bin/scripts/createlang.c b/src/bin/scripts/createlang.c index 1c92fec9b67..e8d741584a1 100644 --- a/src/bin/scripts/createlang.c +++ b/src/bin/scripts/createlang.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.13 2004/08/29 04:13:03 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.14 2004/08/29 05:06:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -249,7 +249,7 @@ main(int argc, char *argv[]) PQclear(result); } else - validatorexists = true; /* don't try to create it */ + validatorexists = true; /* don't try to create it */ /* * Create the function(s) and the language diff --git a/src/bin/scripts/droplang.c b/src/bin/scripts/droplang.c index 04da9e69d17..42b72e73a00 100644 --- a/src/bin/scripts/droplang.c +++ b/src/bin/scripts/droplang.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.12 2004/08/29 04:13:03 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.13 2004/08/29 05:06:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -165,8 +165,8 @@ main(int argc, char *argv[]) conn = connectDatabase(dbname, host, port, username, password, progname); /* - * Make sure the language is installed and find the OIDs of the handler - * and validator functions + * Make sure the language is installed and find the OIDs of the + * handler and validator functions */ printfPQExpBuffer(&sql, "SELECT lanplcallfoid, lanvalidator FROM pg_language WHERE lanname = '%s' AND lanispl;", langname); result = executeQuery(conn, sql.data, progname, echo); diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c index 308206953d1..20198863603 100644 --- a/src/bin/scripts/vacuumdb.c +++ b/src/bin/scripts/vacuumdb.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.10 2004/08/29 04:13:03 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.11 2004/08/29 05:06:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -14,14 +14,12 @@ #include "common.h" -static void -vacuum_one_database(const char *dbname, bool full, bool verbose, bool analyze, +static void vacuum_one_database(const char *dbname, bool full, bool verbose, bool analyze, const char *table, const char *host, const char *port, const char *username, bool password, const char *progname, bool echo, bool quiet); -static void -vacuum_all_databases(bool full, bool verbose, bool analyze, +static void vacuum_all_databases(bool full, bool verbose, bool analyze, const char *host, const char *port, const char *username, bool password, const char *progname, bool echo, bool quiet); |