[CRIU] [PATCH 10/13] parasite: Change 0 to NULL in sys_mmap call

Cyrill Gorcunov gorcunov at openvz.org
Tue Apr 17 17:55:45 EDT 2012


First argument is void pointer

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 parasite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/parasite.c b/parasite.c
index b000dfe..7fe6558 100644
--- a/parasite.c
+++ b/parasite.c
@@ -45,7 +45,7 @@ static int brk_init(void)
 	/*
 	 *  Map 10 MB. Hope this will be enough for unix skb's...
 	 */
-       ret = sys_mmap(0, MAX_HEAP_SIZE,
+       ret = sys_mmap(NULL, MAX_HEAP_SIZE,
 			    PROT_READ | PROT_WRITE,
 			    MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
 	if (ret < 0)
-- 
1.7.7.6



More information about the CRIU mailing list