Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit149008d

Browse files
committed
Add missing 3rd parameter to open().
1 parent44f62de commit149008d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎contrib/dbase/dbf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/contrib/dbase/dbf.c,v 1.10 2006/03/11 04:38:28 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/dbase/dbf.c,v 1.11 2006/06/08 03:28:01 momjian Exp $ */
22

33
/* Routines to read and write xBase-files (.dbf)
44
@@ -47,7 +47,7 @@ dbf_open(char *file, int flags)
4747
return (dbhead*)DBF_ERROR;
4848
}
4949

50-
if ((file_no=open(file,flags))==-1)
50+
if ((file_no=open(file,flags,0))==-1)
5151
{
5252
free(fieldc);
5353
free(head);
@@ -250,7 +250,7 @@ dbf_open_new(char *name, int flags)
250250
}
251251
else
252252
{
253-
if ((dbh->db_fd=open(name,flags))==-1)
253+
if ((dbh->db_fd=open(name,flags,0))==-1)
254254
{
255255
free(dbh);
256256
return (dbhead*)DBF_ERROR;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp