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/backend/tcop/postgres.c | |
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/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index caeef3cd570..4c006f00b8b 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.403 2004/05/11 21:57:14 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.404 2004/05/12 13:38:40 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -2083,7 +2083,7 @@ assign_max_stack_depth(int newval, bool doit, GucSource source) static void -usage(char *progname) +usage(const char *progname) { printf(gettext("%s is the PostgreSQL stand-alone backend. It is not\nintended to be used by normal users.\n\n"), progname); @@ -2649,7 +2649,7 @@ PostgresMain(int argc, char *argv[], const char *username) * On some systems our dynloader code needs the executable's * pathname. (If under postmaster, this was done already.) */ - if (find_my_binary(pg_pathname, argv[0], "postgres") < 0) + if (find_my_exec(pg_pathname, argv[0]) < 0) ereport(FATAL, (errmsg("%s: could not locate postgres executable", argv[0]))); |