Navigation Menu

Skip to content

Commit

Permalink
io: add a missing function declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 16, 2015
1 parent 6cc7473 commit c3d125c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/io.c
Expand Up @@ -103,6 +103,14 @@ grn_io_fin(void)
return GRN_SUCCESS;
}

static inline uint32_t
grn_io_compute_base(uint32_t header_size)
{
uint32_t total_header_size;
total_header_size = IO_HEADER_SIZE + header_size;
return (total_header_size + grn_pagesize - 1) & ~(grn_pagesize - 1);
}

grn_io *
grn_io_create_tmp(uint32_t header_size, uint32_t segment_size,
uint32_t max_segment, grn_io_mode mode, uint32_t flags)
Expand Down

0 comments on commit c3d125c

Please sign in to comment.