Mercurial > masqmail
diff src/alias.c @ 399:c7cc3c03193c
Minor refactoring.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 21 Feb 2012 15:02:07 +0100 |
parents | 68ae9182059c |
children | ddac877ced95 |
line wrap: on
line diff
--- a/src/alias.c Tue Feb 21 14:44:00 2012 +0100 +++ b/src/alias.c Tue Feb 21 15:02:07 2012 +0100 @@ -174,7 +174,7 @@ DEBUG(6) debugf("alias: processing '%s'\n", val); - if (val[0] == '\\') { + if (*val == '\\') { DEBUG(5) debugf("alias: '%s' is marked as final, " "hence completed\n", val); alias_addr = create_address_qualified(val+1, TRUE, @@ -186,7 +186,7 @@ continue; } - if (val[0] == '|') { + if (*val == '|') { DEBUG(5) debugf("alias: '%s' is a pipe address\n", val); alias_addr = create_address_pipe(val); @@ -244,9 +244,8 @@ GList *rcpt_node_next = NULL; address *addr = NULL; - for (rcpt_node=g_list_copy(rcpt_list); - rcpt_node; - rcpt_node=g_list_next(rcpt_node)) { + for (rcpt_node=g_list_copy(rcpt_list); rcpt_node; + rcpt_node=g_list_next(rcpt_node)) { addr = (address *) (rcpt_node->data); if (addr_is_local(addr)) {