From 122f097dd30861715c3875e91492bc1fd8203537 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sun, 1 May 2022 18:54:33 +0200 Subject: [PATCH] mxqd.c: Remove two unused variables --- mxqd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mxqd.c b/mxqd.c index f8e99efa..ce0265c1 100644 --- a/mxqd.c +++ b/mxqd.c @@ -1648,8 +1648,6 @@ static int killall(struct mxq_server *server) struct mxq_group_list *glist; struct mxq_job_list *jlist; - struct mxq_group *group; - struct ppidcache *ppidcache = ppidcache_new(); ppidcache_scan(ppidcache); @@ -1657,7 +1655,6 @@ static int killall(struct mxq_server *server) for (ulist = server->users; ulist; ulist = ulist->next) { for (glist = ulist->groups; glist; glist = glist->next) { - group = &glist->group; for (jlist = glist->jobs; jlist; jlist = jlist->next) killstate_event(ppidcache, jlist, KILLEVENT_CANCEL); } @@ -1781,9 +1778,7 @@ static int killall_cancelled(struct ppidcache *ppidcache, struct mxq_server *ser struct mxq_user_list *ulist; struct mxq_group_list *glist; struct mxq_job_list *jlist; - struct mxq_group *group; - struct mxq_job *job; assert(server); @@ -1799,7 +1794,6 @@ static int killall_cancelled(struct ppidcache *ppidcache, struct mxq_server *ser group->user_name, group->user_uid, group->group_id); for (jlist = glist->jobs; jlist; jlist = jlist->next) { - job = &jlist->job; killstate_event(ppidcache, jlist, KILLEVENT_CANCEL); } }