aboutsummaryrefslogtreecommitdiff
path: root/src/ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctl.c')
-rw-r--r--src/ctl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ctl.c b/src/ctl.c
index 21abf59..a7db410 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -1834,15 +1834,15 @@ selector (struct prog *prog, void *data)
static int
prog_active (struct prog *prog)
{
- if (prog->v.p.active)
+ if (prog->active)
{
if (ISCF_TCPMUX (prog->v.p.comp->flags))
{
prog = progman_locate (prog->v.p.comp->tcpmux);
- return prog && prog->v.p.active;
+ return prog && prog->active;
}
}
- return prog->v.p.active;
+ return prog->active;
}
static struct json_value *
@@ -1912,14 +1912,14 @@ fun_stop (struct json_value *result, struct prog *prog)
{
if (IS_COMPONENT (prog))
{
- if (!prog->v.p.active)
+ if (!prog->active)
{
json_object_set_string (result, "status", "ER");
json_object_set_string (result, "error_message", "already stopped");
return 1;
}
- prog->v.p.active = 0;
+ prog->active = 0;
progman_stop_component (&prog);
json_object_set_string (result, "status", "OK");
}
@@ -1972,7 +1972,7 @@ fun_start (struct json_value *result, struct prog *prog)
json_object_set_string (result, "error_message", "already running");
return 1;
}
- prog->v.p.active = 1;
+ prog->active = 1;
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.