mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
Refactor, change from static array of svc_t to linked list
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
d7401b2a96
commit
0f1f51b5ad
7 files changed
+103
-164
No files matched your search
+2
-4
@@ -1023,10 +1023,9 @@ void service_step_all(int types)
|
||||
*/
|
||||
void service_runtask_clean(void)
|
||||
{
|
||||
int pos;
|
||||
svc_t *svc;
|
||||
|
||||
for (svc = svc_iterator1(&pos, 1); svc; svc = svc_iterator1(&pos, 0)) {
|
||||
for (svc = svc_iterator(NULL); svc; svc = svc_iterator(svc)) {
|
||||
if (!svc_is_runtask(svc))
|
||||
continue;
|
||||
|
||||
@@ -1053,10 +1052,9 @@ void service_runtask_clean(void)
|
||||
*/
|
||||
int service_runtask_completed(int skip)
|
||||
{
|
||||
int pos;
|
||||
svc_t *svc;
|
||||
|
||||
for (svc = svc_iterator1(&pos, 1); svc; svc = svc_iterator1(&pos, 0)) {
|
||||
for (svc = svc_iterator(NULL); svc; svc = svc_iterator(svc)) {
|
||||
if (!svc_is_runtask(svc))
|
||||
continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user