diff src/route.c @ 15:f671821d8222

code beautifying; 0 -> \0 if appropriate
author meillo@marmaro.de
date Thu, 06 Nov 2008 09:18:38 +0100
parents 26e34ae9a3e3
children a80ebfa16cd5
line wrap: on
line diff
--- a/src/route.c	Wed Oct 29 21:21:26 2008 +0100
+++ b/src/route.c	Thu Nov 06 09:18:38 2008 +0100
@@ -16,8 +16,9 @@
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
 
+#include <fnmatch.h>
+
 #include "masqmail.h"
-#include <fnmatch.h>
 
 msgout_perhost*
 create_msgout_perhost(gchar * host)
@@ -85,7 +86,8 @@
 						DEBUG(6) debugf("header = %s\n", new_hdr->header);
 						msgout->xtra_hdr_list = g_list_append(msgout->xtra_hdr_list, new_hdr);
 					} else {
-						logwrite(LOG_ALERT, "error in set_address_header_domain(%s, %s)\n", new_hdr->value, route->set_h_from_domain);
+						logwrite(LOG_ALERT, "error in set_address_header_domain(%s, %s)\n",
+						         new_hdr->value, route->set_h_from_domain);
 					}
 				}
 			}
@@ -170,7 +172,8 @@
 			if (hdr->id == HEAD_SENDER) {
 				header *new_hdr;
 
-				new_hdr = create_header(HEAD_SENDER, "Sender: %s@%s\n", msgout->return_path->local_part, msgout->return_path->domain);
+				new_hdr = create_header(HEAD_SENDER, "Sender: %s@%s\n",
+				                        msgout->return_path->local_part, msgout->return_path->domain);
 				hdr_node->data = new_hdr;
 				/* we need this list only to carefully free the extra headers: */
 				msgout->xtra_hdr_list = g_list_append(msgout->xtra_hdr_list, new_hdr);
@@ -322,8 +325,7 @@
 			}
 		}
 
-		/* rewrite return path
-		   if there is a table, use that
+		/* rewrite return path if there is a table, use that
 		   if an address is found and if it has a domain, use that
 		 */
 		if (route->map_return_path_addresses) {
@@ -382,9 +384,8 @@
 				/* there is already a rcpt for this host */
 				msg_out *msgout_last = (msg_out *) ((g_list_last(mo_ph->msgout_list))->data);
 				if (msgout_last->msg == msgout->msg) {
-					/* if it is also the same message, it must be the last one
-					   appended to mo_ph->msgout_list (since outer loop goes through
-					   msgout_list) */
+					/* if it is also the same message, it must be the last one appended
+					   to mo_ph->msgout_list (since outer loop goes through msgout_list) */
 					msgout_last->rcpt_list = g_list_append(msgout_last->rcpt_list, rcpt);
 				} else {
 					/* if not, we append a new msgout */