memory : use size_t instead of int 02/123302/1 accepted/tizen/unified/20170406.055123 submit/tizen/20170405.073013
authorKichan Kwon <k_c.kwon@samsung.com>
Wed, 5 Apr 2017 07:13:47 +0000 (16:13 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Wed, 5 Apr 2017 07:16:10 +0000 (16:16 +0900)
- To pass argument with resourced_notify, you should cast to (void *)
- However, in 64bit architecture, build is failed because
 the size of (int) and (void *) is different

Change-Id: Ic7750e292b711777a31b9e80058baaff2b57dee4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/memory/vmpressure-lowmem-handler.c

index 229678b..5acc53d 100644 (file)
@@ -273,7 +273,7 @@ static void low_act(void);
 static void medium_act(void);
 
 
-static int cur_mem_state = LOWMEM_NORMAL;
+static size_t cur_mem_state = LOWMEM_NORMAL;
 static int num_max_victims = MAX_MEMORY_CGROUP_VICTIMS;
 static int num_vict_between_check = MAX_VICTIMS_BETWEEN_CHECK;