From: Baptiste Daroussin Date: Wed, 12 Apr 2023 16:15:39 +0000 (+0200) Subject: listcontrol: remove useless intermediary variables X-Git-Tag: RELEASE_1_4_0b1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab4a7e6630b176ef9af559ed6ee3810151f372aa;p=thirdparty%2Fmlmmj.git listcontrol: remove useless intermediary variables --- 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;