1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

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 *.
This commit is contained in:
Bruce Momjian
2004-05-12 13:38:49 +00:00
parent 3bfd4d9284
commit b1ffacddfc
20 changed files with 53 additions and 53 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/path.c,v 1.6 2004/05/11 21:57:15 momjian Exp $
* $PostgreSQL: pgsql/src/port/path.c,v 1.7 2004/05/12 13:38:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -113,8 +113,8 @@ canonicalize_path(char *path)
/*
* Extracts the actual name of the program as called.
*/
char *
get_progname(char *argv0)
const char *
get_progname(const char *argv0)
{
if (!last_path_separator(argv0))
return argv0;