masqmail

diff src/deliver.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 08932c629849
children b27f66555ba8
line diff
     1.1 --- a/src/deliver.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/deliver.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -27,7 +27,7 @@
     1.4  /* collect failed/defered rcpts for failure/warning messages */
     1.5  /* returns TRUE if either there are no failures or a failure message has been successfully sent */
     1.6  gboolean
     1.7 -delivery_failures(message * msg, GList * rcpt_list, gchar * err_fmt, ...)
     1.8 +delivery_failures(message *msg, GList *rcpt_list, gchar *err_fmt, ...)
     1.9  {
    1.10  	gboolean ok_fail = TRUE, ok_warn = TRUE;
    1.11  	time_t now = time(NULL);
    1.12 @@ -69,7 +69,7 @@
    1.13  }
    1.14  
    1.15  gboolean
    1.16 -deliver_local_mbox(message* msg, GList* hdr_list, address* rcpt, address* env_addr)
    1.17 +deliver_local_mbox(message *msg, GList *hdr_list, address *rcpt, address *env_addr)
    1.18  {
    1.19  	DEBUG(1) debugf("attempting to deliver %s with mbox\n", msg->uid);
    1.20  	if (append_file(msg, hdr_list, rcpt->local_part)) {
    1.21 @@ -92,7 +92,7 @@
    1.22  }
    1.23  
    1.24  gboolean
    1.25 -deliver_local_pipe(message* msg, GList* hdr_list, address* rcpt, address* env_addr)
    1.26 +deliver_local_pipe(message *msg, GList *hdr_list, address *rcpt, address *env_addr)
    1.27  {
    1.28  	guint flags;
    1.29  
    1.30 @@ -117,7 +117,7 @@
    1.31  }
    1.32  
    1.33  gboolean
    1.34 -deliver_local_mda(message* msg, GList* hdr_list, address* rcpt, address* env_addr)
    1.35 +deliver_local_mda(message *msg, GList *hdr_list, address *rcpt, address *env_addr)
    1.36  {
    1.37  	gboolean ok = FALSE;
    1.38  	gchar *cmd = g_malloc(256);
    1.39 @@ -151,7 +151,7 @@
    1.40  }
    1.41  
    1.42  gboolean
    1.43 -deliver_local(msg_out * msgout)
    1.44 +deliver_local(msg_out *msgout)
    1.45  {
    1.46  	message *msg = msgout->msg;
    1.47  	GList *rcpt_list = msgout->rcpt_list;
    1.48 @@ -238,7 +238,7 @@
    1.49  /* make a list of rcpt's of a message that are local
    1.50     return a new copy of the list */
    1.51  void
    1.52 -msg_rcptlist_local(GList * rcpt_list, GList ** p_local_list, GList ** p_nonlocal_list)
    1.53 +msg_rcptlist_local(GList *rcpt_list, GList **p_local_list, GList **p_nonlocal_list)
    1.54  {
    1.55  	GList *rcpt_node;
    1.56  
    1.57 @@ -262,7 +262,7 @@
    1.58  }
    1.59  
    1.60  gboolean
    1.61 -deliver_msglist_host_pipe(connect_route * route, GList * msgout_list, gchar * host, GList * res_list)
    1.62 +deliver_msglist_host_pipe(connect_route *route, GList *msgout_list, gchar *host, GList *res_list)
    1.63  {
    1.64  	gboolean ok = TRUE;
    1.65  	GList *msgout_node;
    1.66 @@ -334,7 +334,7 @@
    1.67     Returns TRUE if at least one msg was delivered to at least one rcpt.
    1.68  */
    1.69  gboolean
    1.70 -deliver_msglist_host_smtp(connect_route * route, GList * msgout_list, gchar * host, GList * res_list)
    1.71 +deliver_msglist_host_smtp(connect_route *route, GList *msgout_list, gchar *host, GList *res_list)
    1.72  {
    1.73  	gboolean ok = FALSE;
    1.74  	GList *msgout_node;
    1.75 @@ -464,7 +464,7 @@
    1.76  }
    1.77  
    1.78  gboolean
    1.79 -deliver_msglist_host(connect_route * route, GList * msgout_list, gchar * host, GList * res_list)
    1.80 +deliver_msglist_host(connect_route *route, GList *msgout_list, gchar *host, GList *res_list)
    1.81  {
    1.82  
    1.83  	if (route->pipe) {
    1.84 @@ -480,7 +480,7 @@
    1.85    delivers messages in msgout_list using route
    1.86  */
    1.87  gboolean
    1.88 -deliver_route_msgout_list(connect_route * route, GList * msgout_list)
    1.89 +deliver_route_msgout_list(connect_route *route, GList *msgout_list)
    1.90  {
    1.91  	gboolean ok = FALSE;
    1.92  	GList *mo_ph_list;
    1.93 @@ -522,7 +522,7 @@
    1.94    delivers messages in msg_list using route by calling deliver_route_msgout_list()
    1.95  */
    1.96  gboolean
    1.97 -deliver_route_msg_list(connect_route * route, GList * msgout_list)
    1.98 +deliver_route_msg_list(connect_route *route, GList *msgout_list)
    1.99  {
   1.100  	GList *msgout_list_deliver = NULL;
   1.101  	GList *msgout_node;
   1.102 @@ -562,8 +562,8 @@
   1.103  		}
   1.104  
   1.105  		/* filter by allowed envelope rcpts */
   1.106 -		GList* rcpt_list_allowed = NULL;
   1.107 -		GList* rcpt_list_notallowed = NULL;
   1.108 +		GList *rcpt_list_allowed = NULL;
   1.109 +		GList *rcpt_list_notallowed = NULL;
   1.110  		route_split_rcpts(route, msgout_cloned->rcpt_list, &rcpt_list_allowed, &rcpt_list_notallowed);
   1.111  		if (!rcpt_list_allowed) {
   1.112  			destroy_msg_out(msgout_cloned);
   1.113 @@ -600,7 +600,7 @@
   1.114     to make sure that they will not be delivered again.
   1.115  */
   1.116  void
   1.117 -update_non_rcpt_list(msg_out * msgout)
   1.118 +update_non_rcpt_list(msg_out *msgout)
   1.119  {
   1.120  	GList *rcpt_node;
   1.121  	message *msg = msgout->msg;
   1.122 @@ -621,7 +621,7 @@
   1.123     returns TRUE if all went well.
   1.124  */
   1.125  gboolean
   1.126 -deliver_finish(msg_out * msgout)
   1.127 +deliver_finish(msg_out *msgout)
   1.128  {
   1.129  	GList *rcpt_node;
   1.130  	message *msg = msgout->msg;
   1.131 @@ -668,7 +668,7 @@
   1.132  }
   1.133  
   1.134  int
   1.135 -deliver_remote(GList* remote_msgout_list)
   1.136 +deliver_remote(GList *remote_msgout_list)
   1.137  {
   1.138  	int ok = TRUE;
   1.139  	GList *route_list = NULL;
   1.140 @@ -732,7 +732,7 @@
   1.141     into local and remote addresses and processes them accordingly.
   1.142  */
   1.143  gboolean
   1.144 -deliver_msg_list(GList * msg_list, guint flags)
   1.145 +deliver_msg_list(GList *msg_list, guint flags)
   1.146  {
   1.147  	GList *msgout_list = NULL;
   1.148  	GList *msg_node;
   1.149 @@ -781,7 +781,7 @@
   1.150  			rcpt_list = aliased_rcpt_list;
   1.151  		}
   1.152  
   1.153 -		/* split_rcpts(rcpt_list, NULL, &local_rcpt_list, * NULL, &other_rcpt_list); */
   1.154 +		/* split_rcpts(rcpt_list, NULL, &local_rcpt_list, NULL, &other_rcpt_list); */
   1.155  		local_rcpt_list = local_rcpts(rcpt_list);
   1.156  		other_rcpt_list = remote_rcpts(rcpt_list);
   1.157  		g_list_free(rcpt_list);
   1.158 @@ -845,7 +845,7 @@
   1.159     deliver then.
   1.160  */
   1.161  gboolean
   1.162 -deliver(message * msg)
   1.163 +deliver(message *msg)
   1.164  {
   1.165  	gboolean ok;
   1.166  	GList *msg_list = g_list_append(NULL, msg);