diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-01-08 00:08:58 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-01-08 00:08:58 +0200 |
commit | 06499f7e23e5ba528686c6135b02eafe6cb47817 (patch) | |
tree | c37cb08d4ab1fdbf31ebc8f3f513ec8f90860aa4 /src/ctl.c | |
parent | b47dfe00a3658aa95c4ed6cf79a0e66e06eed0ff (diff) | |
download | pies-06499f7e23e5ba528686c6135b02eafe6cb47817.tar.gz pies-06499f7e23e5ba528686c6135b02eafe6cb47817.tar.bz2 |
Bugfixes
* bootstrap.conf (bootstrap_epilogue): Declare the package as a
GNU one.
* configure.ac: Require gettext 0.19
Remove useless conditional
* src/ctl.c (fun_stop, fun_start): Check prog->v.p.status, not the
CF_DISABLED flag.
Diffstat (limited to 'src/ctl.c')
-rw-r--r-- | src/ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1855,7 +1855,7 @@ fun_list (struct json_value *result, struct prog *prog) | |||
1855 | static int | 1855 | static int |
1856 | fun_stop (struct json_value *result, struct prog *prog) | 1856 | fun_stop (struct json_value *result, struct prog *prog) |
1857 | { | 1857 | { |
1858 | if (prog->v.p.comp->flags & CF_DISABLED) | 1858 | if (prog->v.p.status == status_disabled) |
1859 | { | 1859 | { |
1860 | json_object_set_string (result, "status", "ER"); | 1860 | json_object_set_string (result, "status", "ER"); |
1861 | json_object_set_string (result, "error_message", "already stopped"); | 1861 | json_object_set_string (result, "error_message", "already stopped"); |
@@ -1873,7 +1873,7 @@ fun_stop (struct json_value *result, struct prog *prog) | |||
1873 | static int | 1873 | static int |
1874 | fun_start (struct json_value *result, struct prog *prog) | 1874 | fun_start (struct json_value *result, struct prog *prog) |
1875 | { | 1875 | { |
1876 | if (prog->v.p.comp->flags & CF_DISABLED) | 1876 | if (prog->v.p.status == status_disabled) |
1877 | { | 1877 | { |
1878 | prog->v.p.comp->flags &= ~CF_DISABLED; | 1878 | prog->v.p.comp->flags &= ~CF_DISABLED; |
1879 | prog->v.p.status = status_enabled; | 1879 | prog->v.p.status = status_enabled; |