masqmail
diff src/route.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 | ddb7b3fd3d08 |
children | b27f66555ba8 |
line diff
1.1 --- a/src/route.c Wed Sep 14 12:20:40 2011 +0200 1.2 +++ b/src/route.c Thu Sep 22 15:07:40 2011 +0200 1.3 @@ -22,7 +22,7 @@ 1.4 #include "masqmail.h" 1.5 1.6 msgout_perhost* 1.7 -create_msgout_perhost(gchar * host) 1.8 +create_msgout_perhost(gchar *host) 1.9 { 1.10 msgout_perhost *mo_ph = g_malloc(sizeof(msgout_perhost)); 1.11 if (mo_ph) { 1.12 @@ -33,7 +33,7 @@ 1.13 } 1.14 1.15 void 1.16 -destroy_msgout_perhost(msgout_perhost * mo_ph) 1.17 +destroy_msgout_perhost(msgout_perhost *mo_ph) 1.18 { 1.19 GList *mo_node; 1.20 1.21 @@ -48,7 +48,7 @@ 1.22 } 1.23 1.24 void 1.25 -rewrite_headers(msg_out * msgout, connect_route * route) 1.26 +rewrite_headers(msg_out *msgout, connect_route *route) 1.27 { 1.28 /* if set_h_from_domain is set, replace domain in all 1.29 From: headers. 1.30 @@ -198,7 +198,7 @@ 1.31 If patterns is NULL: only splitting between local and others is done. 1.32 */ 1.33 void 1.34 -split_rcpts(GList* rcpt_list, GList* patterns, GList** rl_local, GList** rl_matching, GList** rl_others) 1.35 +split_rcpts(GList *rcpt_list, GList *patterns, GList **rl_local, GList **rl_matching, GList **rl_others) 1.36 { 1.37 GList *rcpt_node; 1.38 GList *host_node = NULL; 1.39 @@ -238,7 +238,7 @@ 1.40 TODO: This function is almost exactly the same as remote_rcpts(). Merge? 1.41 */ 1.42 GList* 1.43 -local_rcpts(GList* rcpt_list) 1.44 +local_rcpts(GList *rcpt_list) 1.45 { 1.46 GList *rcpt_node; 1.47 GList *local_rcpts = NULL; 1.48 @@ -261,7 +261,7 @@ 1.49 TODO: This function is almost exactly the same as local_rcpts(). Merge? 1.50 */ 1.51 GList* 1.52 -remote_rcpts(GList* rcpt_list) 1.53 +remote_rcpts(GList *rcpt_list) 1.54 { 1.55 GList *rcpt_node; 1.56 GList *remote_rcpts = NULL; 1.57 @@ -283,8 +283,8 @@ 1.58 _g_list_addrcmp(gconstpointer pattern, gconstpointer addr) 1.59 { 1.60 int res; 1.61 - address* patternaddr = (address*) pattern; 1.62 - address* stringaddr = (address*) addr; 1.63 + address *patternaddr = (address*) pattern; 1.64 + address *stringaddr = (address*) addr; 1.65 1.66 DEBUG(6) debugf("_g_list_addrcmp: pattern `%s' `%s' on string `%s' `%s'\n", 1.67 patternaddr->local_part, patternaddr->domain, 1.68 @@ -301,7 +301,7 @@ 1.69 } 1.70 1.71 gboolean 1.72 -route_sender_is_allowed(connect_route * route, address * ret_path) 1.73 +route_sender_is_allowed(connect_route *route, address *ret_path) 1.74 { 1.75 if (route->denied_senders && g_list_find_custom(route->denied_senders, ret_path, _g_list_addrcmp)) { 1.76 return FALSE; 1.77 @@ -321,7 +321,7 @@ 1.78 Local domains are NOT regared here, these should be sorted out previously 1.79 */ 1.80 void 1.81 -route_split_rcpts(connect_route * route, GList * rcpt_list, GList ** p_rcpt_list, GList ** p_non_rcpt_list) 1.82 +route_split_rcpts(connect_route *route, GList *rcpt_list, GList **p_rcpt_list, GList **p_non_rcpt_list) 1.83 { 1.84 GList *tmp_list = NULL; 1.85 /* sort out those domains that can be sent over this connection: */ 1.86 @@ -339,7 +339,7 @@ 1.87 } 1.88 1.89 msg_out* 1.90 -route_prepare_msgout(connect_route * route, msg_out * msgout) 1.91 +route_prepare_msgout(connect_route *route, msg_out *msgout) 1.92 { 1.93 message *msg = msgout->msg; 1.94 GList *rcpt_list = msgout->rcpt_list; 1.95 @@ -389,7 +389,7 @@ 1.96 */ 1.97 1.98 GList* 1.99 -route_msgout_list(connect_route * route, GList * msgout_list) 1.100 +route_msgout_list(connect_route *route, GList *msgout_list) 1.101 { 1.102 GList *mo_ph_list = NULL; 1.103 GList *msgout_node;