diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2008-03-13 18:21:43 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2008-03-13 18:21:43 -0700 |
commit | fcc11be4f122a3eb460b1a5a88ca977524fa0002 (patch) | |
tree | 1bbd47577661a279dbf4258e1a42699d90153b73 /test | |
parent | 3214ac53ac561fa9c6e9b9204500feade723d0ee (diff) |
Kill off the unused initd deps member
The deps field was just a holdover from the initial simple
implementation and doesn't correspond to any of the LSB headers.
Diffstat (limited to 'test')
-rw-r--r-- | test/tinitd.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/test/tinitd.c b/test/tinitd.c index 399c0b3..2649488 100644 --- a/test/tinitd.c +++ b/test/tinitd.c @@ -15,9 +15,6 @@ int main(int argc, char *argv[]) a = initd_new("test"); printf("Created initd with name '%s'\n", a->name); - initd_add(a, "first"); - initd_add(a, "second"); - initd_add_prov(a, "service1"); initd_add_prov(a, "service2"); @@ -37,10 +34,10 @@ int main(int argc, char *argv[]) printf("Contents of copied initd:\n"); print_initd(b); - if (initd_exists_name(b, "first") == 0) - printf("Found dep \"first\" in b\n"); + if (initd_provides(b, "service1")) + printf("Found service \"service1\" in b\n"); else - printf("Fail finding dep \"first\" in b\n"); + printf("Fail finding service \"service1\" in b\n"); initd_free(a); initd_free(b); @@ -59,11 +56,6 @@ static void print_initd(initd_t *ip) printf("initd \"%s\": %s\n", ip->name, ip->sdesc); printf("Description: %s\n", ip->desc); - printf("initd \"%s\" has %d dependencies:\n", ip->name, - ip->deps->ndep); - for (n = 0; n < ip->deps->ndep; n++) - printf(" %d: %s\n", n, ip->deps->dep[n]); - printf("initd \"%s\" provides %d services:\n", ip->name, ip->prov->nprov); for (n = 0; n < ip->prov->nprov; n++) |