1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Declare the arguments of AllocateFile() as const char *, not char *.

This is consistent with the standard definition of fopen().
This commit is contained in:
Tom Lane
2006-03-04 21:32:47 +00:00
parent 2689abf078
commit 60d3c9fdf4
2 changed files with 4 additions and 4 deletions

View File

@ -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;