From dfc86580836ba0006bf9ae7ac3a4206e32faa4a0 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Fri, 23 Oct 2015 11:36:09 +0800 Subject: [PATCH] regress: fix compilation warning of mem_double_unmap.c --- tests/regress/mem_double_unmap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/regress/mem_double_unmap.c b/tests/regress/mem_double_unmap.c index 95086714..3373a5cc 100644 --- a/tests/regress/mem_double_unmap.c +++ b/tests/regress/mem_double_unmap.c @@ -18,31 +18,31 @@ int main(int argc, char **argv, char **envp) err = uc_open(UC_ARCH_X86, UC_MODE_32, &uc); if (err) { printf("not ok - Failed on uc_open() with error returned: %u\n", err); - return; + return -1; } uc_mem_map(uc, 0x1000, 0x1000, UC_PROT_ALL); if (err) { printf("not ok - Failed on uc_mem_map() with error returned: %u\n", err); - return; + return -1; } uc_mem_map(uc, 0x4000, 0x1000, UC_PROT_ALL); if (err) { printf("not ok - Failed on uc_mem_map() with error returned: %u\n", err); - return; + return -1; } err = uc_mem_unmap(uc, 0x4000, 0x1000); if (err) { printf("not ok - Failed on uc_mem_unmap() with error returned: %u\n", err); - return; + return -1; } err = uc_mem_unmap(uc, 0x4000, 0x1000); if (!err) { printf("not ok - second unmap succeeded\n"); - return 1; + return -1; } printf("Tests OK\n");