summaryrefslogtreecommitdiff
path: root/src/port/path.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-05-12 13:38:49 +0000
committerBruce Momjian <bruce@momjian.us>2004-05-12 13:38:49 +0000
commitb1ffacddfc2f558ad150d05a79318b7e58c572b2 (patch)
tree36ceb14a37eab41f2eecb6ddf9b0d10b9f5e355b /src/port/path.c
parent3bfd4d9284877980fc3c452704bf9c650f1f731a (diff)
downloadpostgresql-b1ffacddfc2f558ad150d05a79318b7e58c572b2.tar.gz
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/port/path.c')
-rw-r--r--src/port/path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/port/path.c b/src/port/path.c
index 965d63ea33..5d102a90c2 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -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;