|
7 | 7 | * |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $PostgreSQL: pgsql/src/port/exec.c,v 1.4 2004/05/13 22:45:04 momjian Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/port/exec.c,v 1.5 2004/05/14 17:04:48 momjian Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -177,7 +177,7 @@ validate_exec(char *path) |
177 | 177 | * non-threaded binaries, not in library routines. |
178 | 178 | */ |
179 | 179 | int |
180 | | -find_my_exec(char*full_path,constchar*argv0) |
| 180 | +find_my_exec(constchar*argv0,char*full_path) |
181 | 181 | { |
182 | 182 | charbuf[MAXPGPATH+2]; |
183 | 183 | char*p; |
@@ -272,14 +272,14 @@ find_my_exec(char *full_path, const char *argv0) |
272 | 272 | * Find our binary directory, then make sure the "target" executable |
273 | 273 | * is the proper version. |
274 | 274 | */ |
275 | | -intfind_other_exec(char*retpath,constchar*argv0, |
276 | | -charconst*target,constchar*versionstr) |
| 275 | +intfind_other_exec(constchar*argv0,charconst*target, |
| 276 | +constchar*versionstr,char*retpath) |
277 | 277 | { |
278 | 278 | charcmd[MAXPGPATH]; |
279 | 279 | charline[100]; |
280 | 280 | FILE*pgver; |
281 | 281 |
|
282 | | -if (find_my_exec(retpath,argv0)<0) |
| 282 | +if (find_my_exec(argv0,retpath)<0) |
283 | 283 | return-1; |
284 | 284 |
|
285 | 285 | /* Trim off program name and keep just directory */ |
|