diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-05-12 13:38:49 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-05-12 13:38:49 +0000 |
commit | b1ffacddfc2f558ad150d05a79318b7e58c572b2 (patch) | |
tree | 36ceb14a37eab41f2eecb6ddf9b0d10b9f5e355b /src/bin/scripts | |
parent | 3bfd4d9284877980fc3c452704bf9c650f1f731a (diff) | |
download | postgresql-b1ffacddfc2f558ad150d05a79318b7e58c572b2.tar.gz postgresql-b1ffacddfc2f558ad150d05a79318b7e58c572b2.zip |
Rename find_my_binary/find_other_binary to
find_my_exec/find_other_exec(). Remove passing of progname to these
functions as they can find that out from argv[0], which they already
have.
Make get_progname return const char *, and update all progname variables
to be const char *.
Diffstat (limited to 'src/bin/scripts')
-rw-r--r-- | src/bin/scripts/clusterdb.c | 4 | ||||
-rw-r--r-- | src/bin/scripts/createdb.c | 4 | ||||
-rw-r--r-- | src/bin/scripts/createlang.c | 4 | ||||
-rw-r--r-- | src/bin/scripts/createuser.c | 4 | ||||
-rw-r--r-- | src/bin/scripts/dropdb.c | 4 | ||||
-rw-r--r-- | src/bin/scripts/droplang.c | 4 | ||||
-rw-r--r-- | src/bin/scripts/dropuser.c | 4 | ||||
-rw-r--r-- | src/bin/scripts/vacuumdb.c | 4 |
8 files changed, 16 insertions, 16 deletions
diff --git a/src/bin/scripts/clusterdb.c b/src/bin/scripts/clusterdb.c index 6518e010b7d..0fcab8ec6da 100644 --- a/src/bin/scripts/clusterdb.c +++ b/src/bin/scripts/clusterdb.c @@ -4,7 +4,7 @@ * * Portions Copyright (c) 2002-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/scripts/clusterdb.c,v 1.5 2004/01/01 19:27:15 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/clusterdb.c,v 1.6 2004/05/12 13:38:46 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -43,7 +43,7 @@ main(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - char *progname; + const char *progname; int optindex; int c; diff --git a/src/bin/scripts/createdb.c b/src/bin/scripts/createdb.c index 005c942cca3..8ee5fdca651 100644 --- a/src/bin/scripts/createdb.c +++ b/src/bin/scripts/createdb.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/createdb.c,v 1.7 2004/01/01 19:27:15 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/createdb.c,v 1.8 2004/05/12 13:38:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -37,7 +37,7 @@ main(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - char *progname; + const char *progname; int optindex; int c; diff --git a/src/bin/scripts/createlang.c b/src/bin/scripts/createlang.c index 64e257bc2f0..f75e9e07cdd 100644 --- a/src/bin/scripts/createlang.c +++ b/src/bin/scripts/createlang.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.8 2004/03/19 18:58:07 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.9 2004/05/12 13:38:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -33,7 +33,7 @@ main(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - char *progname; + const char *progname; int optindex; int c; diff --git a/src/bin/scripts/createuser.c b/src/bin/scripts/createuser.c index 12c1aabb5d7..2a262ecb39b 100644 --- a/src/bin/scripts/createuser.c +++ b/src/bin/scripts/createuser.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.9 2004/01/09 00:15:11 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.10 2004/05/12 13:38:48 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -39,7 +39,7 @@ main(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - char *progname; + const char *progname; int optindex; int c; diff --git a/src/bin/scripts/dropdb.c b/src/bin/scripts/dropdb.c index 91ad090f42a..5b8540e4c38 100644 --- a/src/bin/scripts/dropdb.c +++ b/src/bin/scripts/dropdb.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/dropdb.c,v 1.8 2004/01/01 19:27:15 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/dropdb.c,v 1.9 2004/05/12 13:38:48 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -32,7 +32,7 @@ main(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - char *progname; + const char *progname; int optindex; int c; diff --git a/src/bin/scripts/droplang.c b/src/bin/scripts/droplang.c index 43f57115f53..63fe0f7c32c 100644 --- a/src/bin/scripts/droplang.c +++ b/src/bin/scripts/droplang.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.7 2004/03/19 18:58:07 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/droplang.c,v 1.8 2004/05/12 13:38:48 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -34,7 +34,7 @@ main(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - char *progname; + const char *progname; int optindex; int c; diff --git a/src/bin/scripts/dropuser.c b/src/bin/scripts/dropuser.c index b0dc5a7d7c3..352f913a06c 100644 --- a/src/bin/scripts/dropuser.c +++ b/src/bin/scripts/dropuser.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.7 2004/01/01 19:27:15 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/dropuser.c,v 1.8 2004/05/12 13:38:48 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -32,7 +32,7 @@ main(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - char *progname; + const char *progname; int optindex; int c; diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c index cc9d8be1396..ae64f34ab92 100644 --- a/src/bin/scripts/vacuumdb.c +++ b/src/bin/scripts/vacuumdb.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.5 2004/01/01 19:27:15 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.6 2004/05/12 13:38:48 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -48,7 +48,7 @@ main(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - char *progname; + const char *progname; int optindex; int c; |