masqmail
changeset 399:c7cc3c03193c
Minor refactoring.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 21 Feb 2012 15:02:07 +0100 |
parents | b033fd9b96e4 |
children | 6500db550a03 |
files | src/alias.c |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line diff
1.1 --- a/src/alias.c Tue Feb 21 14:44:00 2012 +0100 1.2 +++ b/src/alias.c Tue Feb 21 15:02:07 2012 +0100 1.3 @@ -174,7 +174,7 @@ 1.4 1.5 DEBUG(6) debugf("alias: processing '%s'\n", val); 1.6 1.7 - if (val[0] == '\\') { 1.8 + if (*val == '\\') { 1.9 DEBUG(5) debugf("alias: '%s' is marked as final, " 1.10 "hence completed\n", val); 1.11 alias_addr = create_address_qualified(val+1, TRUE, 1.12 @@ -186,7 +186,7 @@ 1.13 continue; 1.14 } 1.15 1.16 - if (val[0] == '|') { 1.17 + if (*val == '|') { 1.18 DEBUG(5) debugf("alias: '%s' is a pipe address\n", 1.19 val); 1.20 alias_addr = create_address_pipe(val); 1.21 @@ -244,9 +244,8 @@ 1.22 GList *rcpt_node_next = NULL; 1.23 address *addr = NULL; 1.24 1.25 - for (rcpt_node=g_list_copy(rcpt_list); 1.26 - rcpt_node; 1.27 - rcpt_node=g_list_next(rcpt_node)) { 1.28 + for (rcpt_node=g_list_copy(rcpt_list); rcpt_node; 1.29 + rcpt_node=g_list_next(rcpt_node)) { 1.30 1.31 addr = (address *) (rcpt_node->data); 1.32 if (addr_is_local(addr)) {