Add void to function parameters. This is for compatibility with C++

This commit is contained in:
Masaki Muranaka
2013-04-26 11:33:06 +09:00
parent 5c5101809b
commit 2109a99e5b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ irep_free(size_t sirep, mrb_state *mrb)
}
static size_t
offset_crc_body()
offset_crc_body(void)
{
struct rite_binary_header header;
return ((uint8_t *)header.binary_crc - (uint8_t *)&header) + sizeof(header.binary_crc);
+1 -1
View File
@@ -171,7 +171,7 @@ mrb_pool_realloc(mrb_pool *pool, void *p, size_t oldlen, size_t newlen)
#ifdef TEST_POOL
int
main()
main(void)
{
int i, len = 250;
mrb_pool *pool;