use full prototypes for functions without parameters
This commit is contained in:
@@ -193,7 +193,7 @@ static void do_nx_demo(bool cause_fault)
|
||||
uc_close(uc);
|
||||
}
|
||||
|
||||
static void nx_test()
|
||||
static void nx_test(void)
|
||||
{
|
||||
printf("NX demo - step 1: show that code runs to completion\n");
|
||||
do_nx_demo(false);
|
||||
@@ -276,7 +276,7 @@ static void do_perms_demo(bool change_perms)
|
||||
uc_close(uc);
|
||||
}
|
||||
|
||||
static void perms_test()
|
||||
static void perms_test(void)
|
||||
{
|
||||
printf("Permissions demo - step 1: show that area is writeable\n");
|
||||
do_perms_demo(false);
|
||||
@@ -355,7 +355,7 @@ static void do_unmap_demo(bool do_unmap)
|
||||
uc_close(uc);
|
||||
}
|
||||
|
||||
static void unmap_test()
|
||||
static void unmap_test(void)
|
||||
{
|
||||
printf("Unmap demo - step 1: show that area is writeable\n");
|
||||
do_unmap_demo(false);
|
||||
|
||||
@@ -366,7 +366,7 @@ static void test_thumb_ite_internal(bool step, uint32_t *r2_out,
|
||||
*r3_out = r3;
|
||||
}
|
||||
|
||||
static void test_thumb_ite()
|
||||
static void test_thumb_ite(void)
|
||||
{
|
||||
uint32_t r2, r3;
|
||||
uint32_t step_r2, step_r3;
|
||||
@@ -390,7 +390,7 @@ static void test_thumb_ite()
|
||||
}
|
||||
}
|
||||
|
||||
static void test_read_sctlr()
|
||||
static void test_read_sctlr(void)
|
||||
{
|
||||
uc_engine *uc;
|
||||
uc_err err;
|
||||
|
||||
@@ -197,7 +197,7 @@ static void test_arm64eb(void)
|
||||
uc_close(uc);
|
||||
}
|
||||
|
||||
static void test_arm64_sctlr()
|
||||
static void test_arm64_sctlr(void)
|
||||
{
|
||||
uc_engine *uc;
|
||||
uc_err err;
|
||||
@@ -248,7 +248,7 @@ static uint32_t hook_mrs(uc_engine *uc, uc_arm64_reg reg,
|
||||
return 1;
|
||||
}
|
||||
|
||||
static void test_arm64_hook_mrs()
|
||||
static void test_arm64_hook_mrs(void)
|
||||
{
|
||||
uc_engine *uc;
|
||||
uc_err err;
|
||||
|
||||
@@ -49,7 +49,7 @@ void hook_code(uc_engine *uc, uint64_t addr, uint32_t size, void *user_data)
|
||||
printf("HOOK_CODE: 0x%" PRIx64 ", 0x%x\n", addr, size);
|
||||
}
|
||||
|
||||
int main()
|
||||
int main(void)
|
||||
{
|
||||
int i;
|
||||
uc_hook sys_hook;
|
||||
|
||||
@@ -79,7 +79,7 @@ static void trace_new_edge(uc_engine *uc, uc_tb *cur, uc_tb *prev, void *data)
|
||||
prev->pc + prev->size - 1, cur->pc);
|
||||
}
|
||||
|
||||
void test_uc_ctl_exits()
|
||||
void test_uc_ctl_exits(void)
|
||||
{
|
||||
uc_engine *uc;
|
||||
uc_err err;
|
||||
@@ -193,7 +193,7 @@ double time_emulation(uc_engine *uc, uint64_t start, uint64_t end)
|
||||
return (t2 - t1) * 1000.0 / CLOCKS_PER_SEC;
|
||||
}
|
||||
|
||||
static void test_uc_ctl_tb_cache()
|
||||
static void test_uc_ctl_tb_cache(void)
|
||||
{
|
||||
uc_engine *uc;
|
||||
uc_err err;
|
||||
|
||||
@@ -1240,7 +1240,7 @@ static void test_i386_invalid_mem_read_in_tb(void)
|
||||
uc_close(uc);
|
||||
}
|
||||
|
||||
static void test_i386_smc_xor()
|
||||
static void test_i386_smc_xor(void)
|
||||
{
|
||||
uc_engine *uc;
|
||||
uc_err err;
|
||||
@@ -1319,7 +1319,7 @@ static void mmio_write_callback(uc_engine *uc, uint64_t offset, unsigned size,
|
||||
return;
|
||||
}
|
||||
|
||||
static void test_i386_mmio()
|
||||
static void test_i386_mmio(void)
|
||||
{
|
||||
uc_engine *uc;
|
||||
int r_ecx = 0xdeadbeef;
|
||||
@@ -1392,7 +1392,7 @@ static bool test_i386_hook_mem_invalid_cb(uc_engine *uc, uc_mem_type type,
|
||||
return true;
|
||||
}
|
||||
|
||||
static void test_i386_hook_mem_invalid()
|
||||
static void test_i386_hook_mem_invalid(void)
|
||||
{
|
||||
uc_engine *uc;
|
||||
uc_hook hook;
|
||||
|
||||
@@ -163,7 +163,7 @@ static void hex_dump(unsigned char *ptr, unsigned int len)
|
||||
}
|
||||
*/
|
||||
|
||||
static void gdt_demo()
|
||||
static void gdt_demo(void)
|
||||
{
|
||||
uc_engine *uc;
|
||||
uc_hook hook1, hook2;
|
||||
|
||||
Reference in New Issue
Block a user