summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-11-22 11:06:46 +0100
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-11-22 10:18:45 +0000
commit0a368fcbb4d87fcdaf8f94ee86601719ffba6c9b (patch)
tree75bfa21e1943b1368dba59d70520e02f6bc2faeb
parent191346a8c71e7a11472258994b349bdc07834ce7 (diff)
Bug-AGL: SPEC-2807 Change-Id: I66000e567f323c5a53954d1c6a7dcc193e13f89f Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
-rw-r--r--binding/task-manager-binding.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/binding/task-manager-binding.c b/binding/task-manager-binding.c
index d3ce89d..023fae4 100644
--- a/binding/task-manager-binding.c
+++ b/binding/task-manager-binding.c
@@ -47,7 +47,7 @@ void get_process_list(afb_req_t request){
ret_json = json_object_new_object();
json_array = json_object_new_array();
char state_str[2] = "\0";
- int i, ret;
+ int ret;
PROCTAB* proc = openproc(PROC_FILLMEM | PROC_FILLSTAT);
if (!proc){
@@ -115,8 +115,6 @@ void get_process_list(afb_req_t request){
void kill_process(afb_req_t request)
{
- struct json_object *ret_json;
- ret_json = json_object_new_object();
json_object *queryJ = afb_req_json(request);
int tid = json_object_get_int(queryJ);
int ret;