Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
60d3c9fd
Commit
60d3c9fd
authored
19 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Declare the arguments of AllocateFile() as const char *, not char *.
This is consistent with the standard definition of fopen().
parent
2689abf0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/storage/file/fd.c
+2
-2
2 additions, 2 deletions
src/backend/storage/file/fd.c
src/include/storage/fd.h
+2
-2
2 additions, 2 deletions
src/include/storage/fd.h
with
4 additions
and
4 deletions
src/backend/storage/file/fd.c
+
2
−
2
View file @
60d3c9fd
...
...
@@ -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.12
5
2006/0
1/17 23:52:31
tgl Exp $
* $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.12
6
2006/0
3/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
;
...
...
This diff is collapsed.
Click to expand it.
src/include/storage/fd.h
+
2
−
2
View file @
60d3c9fd
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/storage/fd.h,v 1.5
4
200
5/10/15 02:49:46 momjian
Exp $
* $PostgreSQL: pgsql/src/include/storage/fd.h,v 1.5
5
200
6/03/04 21:32:46 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -71,7 +71,7 @@ extern long FileSeek(File file, long offset, int whence);
extern
int
FileTruncate
(
File
file
,
long
offset
);
/* Operations that allow use of regular stdio --- USE WITH CAUTION */
extern
FILE
*
AllocateFile
(
char
*
name
,
char
*
mode
);
extern
FILE
*
AllocateFile
(
const
char
*
name
,
const
char
*
mode
);
extern
int
FreeFile
(
FILE
*
file
);
/* Operations to allow use of the <dirent.h> library routines */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment