From 20b85c03e751b4876fa3c92040464e483172b746 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 19:03:11 +0200 Subject: manual format adjustment --- src/qmail-mfrules.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/qmail-mfrules.c') diff --git a/src/qmail-mfrules.c b/src/qmail-mfrules.c index 7247cf7..c913cda 100644 --- a/src/qmail-mfrules.c +++ b/src/qmail-mfrules.c @@ -19,8 +19,6 @@ #define WHO "qmail-mfrules" -int rename(const char *, const char *); // stdio.h - stralloc address = {0}; stralloc data = {0}; stralloc key = {0}; @@ -39,15 +37,18 @@ void die_nomem() { logmsg(WHO, 112, FATAL, "out of memory"); } + void die_parse() { if (!stralloc_0(&line)) die_nomem(); logmsg(WHO, 100, ERROR, B("unable to parse this line: ", line.s)); } + void die_read() { logmsg(WHO, 111, ERROR, "unable to read control/mailfromrules"); } + void die_write() { logmsg(WHO, 111, ERROR, "unable to write to control/mailfromrules.tmp"); @@ -71,7 +72,7 @@ void doaddressdata() unsigned long bot; unsigned long top; - if (byte_chr(address.s, address.len, '=') == address.len) + if (byte_chr(address.s, address.len, '=') == address.len) { if (byte_chr(address.s, address.len, '@') == address.len) { i = byte_chr(address.s, address.len, '-'); if (i < address.len) { @@ -100,6 +101,7 @@ void doaddressdata() return; } } + } case_lowerb(address.s, address.len); case_lowerb(data.s, data.len); -- cgit v1.2.3