diff options
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/initdb/initdb.c | 6 | ||||
-rw-r--r-- | src/bin/pg_controldata/pg_controldata.c | 4 | ||||
-rw-r--r-- | src/bin/pg_dump/pg_dumpall.c | 6 | ||||
-rw-r--r-- | src/bin/pg_resetxlog/pg_resetxlog.c | 4 | ||||
-rw-r--r-- | src/bin/psql/settings.h | 4 | ||||
-rw-r--r-- | src/bin/psql/tab-complete.c | 4 | ||||
-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 |
14 files changed, 30 insertions, 30 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index fa8bf28da86..c7ebb60f03d 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -39,7 +39,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * Portions taken from FreeBSD. * - * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.27 2004/05/11 21:57:14 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.28 2004/05/12 13:38:42 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -93,7 +93,7 @@ bool show_setting = false; /* internal vars */ -char *progname; +const char *progname; char *postgres; char *encodingid = "0"; char *bki_file; @@ -1932,7 +1932,7 @@ main(int argc, char *argv[]) sprintf(pgdenv, "PGDATA=%s", pg_data); putenv(pgdenv); - if ((ret = find_other_binary(backendbin, argv[0], progname, "postgres", + if ((ret = find_other_exec(backendbin, argv[0], "postgres", PG_VERSIONSTR)) < 0) { if (ret == -1) diff --git a/src/bin/pg_controldata/pg_controldata.c b/src/bin/pg_controldata/pg_controldata.c index 4342d1e10af..86b4d557d9c 100644 --- a/src/bin/pg_controldata/pg_controldata.c +++ b/src/bin/pg_controldata/pg_controldata.c @@ -6,7 +6,7 @@ * copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001; * licence: BSD * - * $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.14 2004/03/22 15:34:22 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.15 2004/05/12 13:38:43 momjian Exp $ */ #include "postgres.h" @@ -75,7 +75,7 @@ main(int argc, char *argv[]) char ckpttime_str[128]; char sysident_str[32]; char *strftime_fmt = "%c"; - char *progname; + const char *progname; setlocale(LC_ALL, ""); #ifdef ENABLE_NLS diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 0817cabfb95..cac837865e3 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * - * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.31 2004/05/11 21:57:14 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.32 2004/05/12 13:38:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -39,7 +39,7 @@ int optreset; #define PG_VERSIONSTR "pg_dump (PostgreSQL) " PG_VERSION "\n" -static char *progname; +static const char *progname; static void help(void); @@ -123,7 +123,7 @@ main(int argc, char *argv[]) } } - if ((ret = find_other_binary(pg_dump_bin, argv[0], progname, "pg_dump", + if ((ret = find_other_exec(pg_dump_bin, argv[0], "pg_dump", PG_VERSIONSTR)) < 0) { if (ret == -1) diff --git a/src/bin/pg_resetxlog/pg_resetxlog.c b/src/bin/pg_resetxlog/pg_resetxlog.c index 80281e8ef7a..8c57f710115 100644 --- a/src/bin/pg_resetxlog/pg_resetxlog.c +++ b/src/bin/pg_resetxlog/pg_resetxlog.c @@ -23,7 +23,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.17 2004/03/22 16:46:28 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.18 2004/05/12 13:38:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -75,7 +75,7 @@ static ControlFileData ControlFile; /* pg_control values */ static uint32 newXlogId, newXlogSeg; /* ID/Segment of new XLOG segment */ static bool guessed = false; /* T if we had to guess at any values */ -static char *progname; +static const char *progname; static bool ReadControlFile(void); static void GuessControlValues(void); diff --git a/src/bin/psql/settings.h b/src/bin/psql/settings.h index e28383b16be..d8766b045a8 100644 --- a/src/bin/psql/settings.h +++ b/src/bin/psql/settings.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.17 2004/03/21 22:29:11 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/psql/settings.h,v 1.18 2004/05/12 13:38:45 momjian Exp $ */ #ifndef SETTINGS_H #define SETTINGS_H @@ -42,7 +42,7 @@ typedef struct _psqlSettings * loop */ bool cur_cmd_interactive; - char *progname; /* in case you renamed psql */ + const char *progname; /* in case you renamed psql */ char *inputfile; /* for error reporting */ unsigned lineno; /* also for error reporting */ diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index f2b2d0902b6..2eb2f19f09f 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.105 2004/05/07 00:24:58 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.106 2004/05/12 13:38:46 momjian Exp $ */ /*---------------------------------------------------------------------- @@ -428,7 +428,7 @@ static char *dequote_file_name(char *text, char quote_char); void initialize_readline(void) { - rl_readline_name = pset.progname; + rl_readline_name = (char *)pset.progname; rl_attempted_completion_function = (void *) psql_completion; rl_basic_word_break_characters = "\t\n@$><=;|&{( "; 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; |