diff options
author | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-11-22 11:06:46 +0100 |
---|---|---|
committer | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-11-22 10:18:45 +0000 |
commit | 0a368fcbb4d87fcdaf8f94ee86601719ffba6c9b (patch) | |
tree | 75bfa21e1943b1368dba59d70520e02f6bc2faeb /binding | |
parent | 191346a8c71e7a11472258994b349bdc07834ce7 (diff) |
fix(task-manager-binding.c): remove unused variable i and ret_jsonicefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.28.99.58.99.48.99.38.99.2
Bug-AGL: SPEC-2807
Change-Id: I66000e567f323c5a53954d1c6a7dcc193e13f89f
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
Diffstat (limited to 'binding')
-rw-r--r-- | binding/task-manager-binding.c | 4 |
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; |