mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +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
+1
-2
@@ -88,11 +88,10 @@ static int svc_has_cond(svc_t *svc)
|
||||
|
||||
static void cond_update(const char *name)
|
||||
{
|
||||
int pos;
|
||||
svc_t *svc;
|
||||
|
||||
_d("%s", name);
|
||||
for (svc = svc_iterator1(&pos, 1); svc; svc = svc_iterator1(&pos, 0)) {
|
||||
for (svc = svc_iterator(NULL); svc; svc = svc_iterator(svc)) {
|
||||
if (!svc_has_cond(svc) || !cond_affects(name, svc->cond))
|
||||
continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user