diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-03-04 21:32:47 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-03-04 21:32:47 +0000 |
commit | 60d3c9fdf4331b4e50d4c8ece07bb8bc0dad7385 (patch) | |
tree | 8d6bfd36ae1d0d391dee7ca4a58022c094840be8 /src/backend | |
parent | 2689abf07849d1ed69dfe57e3a999b1c6bb5e603 (diff) | |
download | postgresql-60d3c9fdf4331b4e50d4c8ece07bb8bc0dad7385.tar.gz postgresql-60d3c9fdf4331b4e50d4c8ece07bb8bc0dad7385.zip |
Declare the arguments of AllocateFile() as const char *, not char *.
This is consistent with the standard definition of fopen().
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/storage/file/fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 496fc481633..edce16471ed 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.125 2006/01/17 23:52:31 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.126 2006/03/04 21:32:47 tgl Exp $ * * NOTES: * @@ -1236,7 +1236,7 @@ FileTruncate(File file, long offset) * Ideally this should be the *only* direct call of fopen() in the backend. */ FILE * -AllocateFile(char *name, char *mode) +AllocateFile(const char *name, const char *mode) { FILE *file; |