diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-05-14 17:04:48 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-05-14 17:04:48 +0000 |
| commit | 9f944f04431882fb0a3cea87451eccb9d3aac7f5 (patch) | |
| tree | 2b11c11e7b3a6cbf854fe5460e50e9c56b1d6db0 /src/port/exec.c | |
| parent | 550735cd735ea1c07c12f34a863780a178c1e547 (diff) | |
| download | postgresql-9f944f04431882fb0a3cea87451eccb9d3aac7f5.tar.gz | |
Adjust find_my_exec/find_other_exec() so that the return parameter is
last, not first. This fits our style better.
Diffstat (limited to 'src/port/exec.c')
| -rw-r--r-- | src/port/exec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/port/exec.c b/src/port/exec.c index 8810184a37..1022082551 100644 --- a/src/port/exec.c +++ b/src/port/exec.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/exec.c,v 1.4 2004/05/13 22:45:04 momjian Exp $ + * $PostgreSQL: pgsql/src/port/exec.c,v 1.5 2004/05/14 17:04:48 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -177,7 +177,7 @@ validate_exec(char *path) * non-threaded binaries, not in library routines. */ int -find_my_exec(char *full_path, const char *argv0) +find_my_exec(const char *argv0, char *full_path) { char buf[MAXPGPATH + 2]; char *p; @@ -272,14 +272,14 @@ find_my_exec(char *full_path, const char *argv0) * Find our binary directory, then make sure the "target" executable * is the proper version. */ -int find_other_exec(char *retpath, const char *argv0, - char const *target, const char *versionstr) +int find_other_exec(const char *argv0, char const *target, + const char *versionstr, char *retpath) { char cmd[MAXPGPATH]; char line[100]; FILE *pgver; - if (find_my_exec(retpath, argv0) < 0) + if (find_my_exec(argv0, retpath) < 0) return -1; /* Trim off program name and keep just directory */ |
