nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9be587a211e5ca49605258890eef34b8ff36ac93
parent c91e4f75fde4a5d5ba4bf0ceba1e9bef972f07f3
Author: Amitai Schleier <schmonz-web-git@schmonz.com>
Date:   Sat,  5 Dec 2020 19:26:11 +0100

Adjust formatting.

This also reverts an unrelated whitespace change in the original patch.

Diffstat:
Mqmail.c | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/qmail.c b/qmail.c @@ -109,11 +109,11 @@ struct qmail *qq; if (!qq->flagerr) if (substdio_flush(&qq->ss) == -1) qq->flagerr = 1; close(qq->fde); substdio_fdbuf(&qq->ss,read,qq->fderr,qq->buf,sizeof(qq->buf)); - while( substdio_bget(&qq->ss,&ch,1) && len < 255){ - errstr[len]=ch; + while (substdio_bget(&qq->ss,&ch,1) && len < 255) { + errstr[len] = ch; len++; } - if (len > 0) errstr[len]='\0'; /* add str-term */ + if (len > 0) errstr[len] = '\0'; /* add str-term */ close(qq->fderr); @@ -148,11 +148,10 @@ struct qmail *qq; case 81: return "Zqq internal bug (#4.3.0)"; case 120: return "Zunable to exec qq (#4.3.0)"; default: - if (exitcode == 82 && len > 2){ + if (exitcode == 82 && len > 2) return errstr; - } if ((exitcode >= 11) && (exitcode <= 40)) - return "Dqq permanent problem (#5.3.0)"; + return "Dqq permanent problem (#5.3.0)"; return "Zqq temporary problem (#4.3.0)"; } }