Make validate_exec take a const char *, for gcc 3.4, which is more

strict.
This commit is contained in:
Bruce Momjian 2004-05-24 20:23:50 +00:00
parent daac2d2c48
commit fcbc95b9a2
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/port/exec.c,v 1.13 2004/05/21 16:06:23 tgl Exp $ * $PostgreSQL: pgsql/src/port/exec.c,v 1.14 2004/05/24 20:23:50 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -72,7 +72,7 @@ static void win32_make_absolute(char *path);
* -2 if the file is otherwise valid but cannot be read. * -2 if the file is otherwise valid but cannot be read.
*/ */
static int static int
validate_exec(char *path) validate_exec(const char *path)
{ {
struct stat buf; struct stat buf;