X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmake_ext4fs.git;a=blobdiff_plain;f=allocate.h;h=a6cd0732afd81ff8cf9ec41e86e4a37bc8634f0c;hp=5c26792cd439309fb97a2785b46a04ed4cb1426a;hb=eebda1d55d9701ace2700d7ae461697fadf52d1f;hpb=bb9cf91795e1254584bf6a38a070646597724089 diff --git a/allocate.h b/allocate.h index 5c26792..a6cd073 100644 --- a/allocate.h +++ b/allocate.h @@ -38,9 +38,9 @@ struct block_allocation { }; -void block_allocator_init(); -void block_allocator_free(); -u32 allocate_block(); +void block_allocator_init(void); +void block_allocator_free(void); +u32 allocate_block(void); struct block_allocation *allocate_blocks(u32 len); int block_allocation_num_regions(struct block_allocation *alloc); int block_allocation_len(struct block_allocation *alloc); @@ -58,7 +58,7 @@ void add_directory(u32 inode); u16 get_directories(int bg); u16 get_bg_flags(int bg); void init_unused_inode_tables(void); -u32 allocate_inode(); +u32 allocate_inode(void); void free_alloc(struct block_allocation *alloc); int reserve_oob_blocks(struct block_allocation *alloc, int blocks); int advance_blocks(struct block_allocation *alloc, int blocks); @@ -67,7 +67,7 @@ int last_region(struct block_allocation *alloc); void rewind_alloc(struct block_allocation *alloc); void append_region(struct block_allocation *alloc, u32 block, u32 len, int bg); -struct block_allocation *create_allocation(); +struct block_allocation *create_allocation(void); int append_oob_allocation(struct block_allocation *alloc, u32 len); void print_blocks(FILE* f, struct block_allocation *alloc);