summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;