dtinfo: Change to ANSI function definitions

This commit is contained in:
Peter Howkins
2018-06-28 04:15:16 +01:00
parent e239c31702
commit 4cf746f177
25 changed files with 203 additions and 660 deletions

View File

@@ -106,10 +106,7 @@ static int tmp __P((void));
*
*/
DB *
__bt_open(fname, flags, mode, openinfo, dflags)
const char *fname;
int flags, mode, dflags;
const BTREEINFO *openinfo;
__bt_open(const char *fname, int flags, int mode, const BTREEINFO *openinfo, int dflags)
{
BTMETA m;
BTREE *t;
@@ -373,8 +370,7 @@ err: if (t) {
* RET_ERROR, RET_SUCCESS
*/
static int
nroot(t)
BTREE *t;
nroot(BTREE *t)
{
PAGE *meta, *root;
pgno_t npg;
@@ -406,7 +402,7 @@ nroot(t)
}
static int
tmp()
tmp(void)
{
sigset_t set, oset;
int fd;
@@ -426,7 +422,7 @@ tmp()
}
static int
byteorder()
byteorder(void)
{
u_long x; /* XXX: 32-bit assumption. */
u_char *p;
@@ -444,8 +440,7 @@ byteorder()
}
int
__bt_fd(dbp)
const DB *dbp;
__bt_fd(const DB *dbp)
{
BTREE *t;