From ab4a7e6630b176ef9af559ed6ee3810151f372aa Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 12 Apr 2023 18:15:39 +0200 Subject: [PATCH] listcontrol: remove useless intermediary variables --- src/listcontrol.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/listcontrol.c b/src/listcontrol.c index c48d823a..d2e1ee8d 100644 --- a/src/listcontrol.c +++ b/src/listcontrol.c @@ -136,8 +136,8 @@ int listcontrol(strlist *fromemails, struct ml *ml, char *omitfilename; char *omit = NULL; char *c, *archivefilename, *sendfilename, *tosend; - bool nosubconfirm, subonlyget; - int tmpfd, noget; + bool nosubconfirm; + int tmpfd; text *txt; char *queuefilename; enum subtype ts = SUB_NONE; @@ -603,15 +603,13 @@ permit: /* listname+get-INDEX@domain.tld */ case CTRL_GET: - noget = statctrl(ml->ctrlfd, "noget"); - if(noget) { + if (statctrl(ml->ctrlfd, "noget")) { errno = 0; log_error(LOG_ARGS, "A get request was sent to a list" " with the noget option set. Ignoring mail"); return -1; } - subonlyget = statctrl(ml->ctrlfd, "subonlyget"); - if(subonlyget) { + if (statctrl(ml->ctrlfd, "subonlyget")) { if(is_subbed(ml->fd, tll_front(*fromemails), 0) == SUB_NONE) { errno = 0; -- 2.47.2