Skip to content

Commit

Permalink
btree: __bt_open: Remove unused "mode" and "flags" arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Jul 29, 2016
1 parent a6d0ace commit 2328ab2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions btree/bt_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,17 @@ static FILEVTABLE bt_fd_fvtable = {
*
* Parameters:
* fname: filename (NULL for in-memory trees)
* flags: open flag bits
* mode: open permission bits
* b: BTREEINFO pointer
*
* Returns:
* NULL on failure, pointer to DB on success.
*
*/
DB *
__bt_open(file, vtable, flags, mode, openinfo, dflags)
__bt_open(file, vtable, openinfo, dflags)
virt_fd_t file;
const FILEVTABLE *vtable;
int flags, mode, dflags;
int dflags;
const BTREEINFO *openinfo;
{
BTMETA m;
Expand Down
2 changes: 1 addition & 1 deletion include/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ __BEGIN_DECLS
DB *dbopen __P((const char *, int, int, DBTYPE, const void *));

#ifdef __DBINTERFACE_PRIVATE
DB *__bt_open __P((virt_fd_t, const FILEVTABLE *, int, int, const BTREEINFO *, int));
DB *__bt_open __P((virt_fd_t, const FILEVTABLE *, const BTREEINFO *, int));
DB *__hash_open __P((const char *, int, int, const HASHINFO *, int));
DB *__rec_open __P((const char *, int, int, const RECNOINFO *, int));
void __dbpanic __P((DB *dbp));
Expand Down

0 comments on commit 2328ab2

Please sign in to comment.