diff options
author | Sam James <sam@gentoo.org> | 2023-01-25 04:05:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-25 00:06:27 -0500 |
commit | a689fdb7beccccbbe448d262993489f0f1c7a825 (patch) | |
tree | 676c56bba93e3ddd51d55cf03e7ac067612a1e0c /src/openrc-run | |
parent | fc4f15d6cd8e7884f7094e5d3749b01f2d5a448f (diff) |
openrc-run: fix -Wunused-but-set-variable
Diffstat (limited to 'src/openrc-run')
-rw-r--r-- | src/openrc-run/openrc-run.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/openrc-run/openrc-run.c b/src/openrc-run/openrc-run.c index f2bf76b9..6f5158a6 100644 --- a/src/openrc-run/openrc-run.c +++ b/src/openrc-run/openrc-run.c @@ -645,7 +645,7 @@ svc_start_deps(void) bool first; RC_STRING *svc, *svc2; RC_SERVICE state; - int depoptions = RC_DEP_TRACE, n; + int depoptions = RC_DEP_TRACE; size_t len; char *p, *tmp; pid_t pid; @@ -755,7 +755,6 @@ svc_start_deps(void) rc_stringlist_free(use_services); use_services = NULL; len = 0; - n = 0; TAILQ_FOREACH(svc, tmplist, entries) { rc_service_schedule_start(svc->value, service); use_services = rc_deptree_depend(deptree, @@ -765,7 +764,6 @@ svc_start_deps(void) rc_stringlist_free(use_services); use_services = NULL; len += strlen(svc->value) + 2; - n++; } len += 5; |