comparison src/rewrite.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 681863fdafbb
children b27f66555ba8
comparison
equal deleted inserted replaced
365:934a223e4ee8 366:41958685480d
19 #ifndef REWRITE_TEST 19 #ifndef REWRITE_TEST
20 #include "masqmail.h" 20 #include "masqmail.h"
21 #endif 21 #endif
22 22
23 gboolean 23 gboolean
24 set_address_header_domain(header * hdr, gchar * domain) 24 set_address_header_domain(header *hdr, gchar *domain)
25 { 25 {
26 gchar *p = hdr->value; 26 gchar *p = hdr->value;
27 gchar *new_hdr = g_strndup(hdr->header, hdr->value - hdr->header); 27 gchar *new_hdr = g_strndup(hdr->header, hdr->value - hdr->header);
28 gint tmp; 28 gint tmp;
29 gchar *loc_beg, *loc_end; 29 gchar *loc_beg, *loc_end;
65 65
66 return TRUE; 66 return TRUE;
67 } 67 }
68 68
69 gboolean 69 gboolean
70 map_address_header(header * hdr, GList * table) 70 map_address_header(header *hdr, GList *table)
71 { 71 {
72 GList *addr_list = addr_list_append_rfc822(NULL, hdr->value, conf.host_name); 72 GList *addr_list = addr_list_append_rfc822(NULL, hdr->value, conf.host_name);
73 GList *addr_node; 73 GList *addr_node;
74 gchar *new_hdr = g_strndup(hdr->header, hdr->value - hdr->header); 74 gchar *new_hdr = g_strndup(hdr->header, hdr->value - hdr->header);
75 gboolean did_change = FALSE; 75 gboolean did_change = FALSE;