Mercurial > masqmail
diff src/alias.c @ 366:41958685480d
Switched to `type *name' style
Andrew Koenig's ``C Traps and Pitfalls'' (Ch.2.1) convinced
me that it is best to go with the way C had been designed.
The ``declaration reflects use'' concept conflicts with a
``type* name'' notation. Hence I switched.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 22 Sep 2011 15:07:40 +0200 |
parents | 273f6c9eb6a2 |
children | b27f66555ba8 |
line wrap: on
line diff
--- a/src/alias.c Wed Sep 14 12:20:40 2011 +0200 +++ b/src/alias.c Thu Sep 22 15:07:40 2011 +0200 @@ -21,7 +21,7 @@ #include <fnmatch.h> gboolean -addr_is_local(address * addr) +addr_is_local(address *addr) { GList *dom_node; GList *addr_node; @@ -65,7 +65,7 @@ } static GList* -parse_list(gchar * line) +parse_list(gchar *line) { GList *list = NULL; gchar buf[256]; @@ -107,14 +107,14 @@ addr is assumed to be local and no pipe address nor not-to-expand */ static GList* -expand_one(GList* alias_table, address* addr) +expand_one(GList *alias_table, address *addr) { GList *val_list; GList *val_node; GList *alias_list = NULL; GList *alias_node; gchar *val; - address* alias_addr; + address *alias_addr; /* expand the local alias */ DEBUG(6) debugf("alias: '%s' is local and will get expanded\n", addr->local_part); @@ -198,7 +198,7 @@ } GList* -alias_expand(GList* alias_table, GList* rcpt_list, GList* non_rcpt_list) +alias_expand(GList *alias_table, GList *rcpt_list, GList *non_rcpt_list) { GList *rcpt_node = NULL; GList *alias_list = NULL;