Skip to content

Commit

Permalink
mxqd.c: Remove two unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed May 5, 2022
1 parent b13f94a commit 122f097
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1648,16 +1648,13 @@ 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);

assert(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);
}
Expand Down Expand Up @@ -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);

Expand All @@ -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);
}
}
Expand Down

0 comments on commit 122f097

Please sign in to comment.