From 837d3787c001c359f0b519389c5a138518726147 Mon Sep 17 00:00:00 2001 From: xorstream Date: Sat, 21 Jan 2017 01:39:49 +1100 Subject: [PATCH] Fix for read()/write() conflict with unistd.h in test_mem_map.c. --- tests/unit/test_mem_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_mem_map.c b/tests/unit/test_mem_map.c index 9c2b9892..86214c59 100644 --- a/tests/unit/test_mem_map.c +++ b/tests/unit/test_mem_map.c @@ -167,14 +167,14 @@ static void test_query_page_size(void **state) assert_int_equal(4096, page_size); } -void write(uc_engine* uc, uint64_t addr, uint64_t len){ +void mem_write(uc_engine* uc, uint64_t addr, uint64_t len){ uint8_t* buff = alloca(len); memset(buff,0,len); uc_mem_write(uc, addr, buff, len); } -void read(uc_engine* uc, uint64_t addr, uint64_t len){ +void mem_read(uc_engine* uc, uint64_t addr, uint64_t len){ uint8_t* buff = alloca(len); uc_mem_read(uc, addr, buff, len); }