masqmail

diff src/address.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 55b7bde95d37
children b27f66555ba8
line diff
     1.1 --- a/src/address.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/address.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -19,7 +19,7 @@
     1.4  #include "masqmail.h"
     1.5  
     1.6  address*
     1.7 -create_address(gchar * path, gboolean is_rfc821)
     1.8 +create_address(gchar *path, gboolean is_rfc821)
     1.9  {
    1.10  	address *addr;
    1.11  	addr = _create_address(path, NULL, is_rfc821);
    1.12 @@ -31,7 +31,7 @@
    1.13  }
    1.14  
    1.15  address*
    1.16 -create_address_qualified(gchar * path, gboolean is_rfc821, gchar * domain)
    1.17 +create_address_qualified(gchar *path, gboolean is_rfc821, gchar *domain)
    1.18  {
    1.19  	address *addr = create_address(path, is_rfc821);
    1.20  
    1.21 @@ -43,7 +43,7 @@
    1.22  
    1.23  /* nothing special about pipes here, but its only called for that purpose */
    1.24  address*
    1.25 -create_address_pipe(gchar * path)
    1.26 +create_address_pipe(gchar *path)
    1.27  {
    1.28  	address *addr = g_malloc(sizeof(address));
    1.29  
    1.30 @@ -58,7 +58,7 @@
    1.31  }
    1.32  
    1.33  void
    1.34 -destroy_address(address * addr)
    1.35 +destroy_address(address *addr)
    1.36  {
    1.37  	DEBUG(6) debugf("destroy_address entered\n");
    1.38  
    1.39 @@ -70,7 +70,7 @@
    1.40  }
    1.41  
    1.42  address*
    1.43 -copy_modify_address(const address * orig, gchar * l_part, gchar * dom)
    1.44 +copy_modify_address(const address *orig, gchar *l_part, gchar *dom)
    1.45  {
    1.46  	address *addr = NULL;
    1.47  
    1.48 @@ -101,7 +101,7 @@
    1.49  }
    1.50  
    1.51  gboolean
    1.52 -addr_isequal(address * addr1, address * addr2, int (*cmpfunc) (const char*, const char*))
    1.53 +addr_isequal(address *addr1, address *addr2, int (*cmpfunc) (const char*, const char*))
    1.54  {
    1.55  	return (cmpfunc(addr1->local_part, addr2->local_part) == 0)
    1.56  	       && (strcasecmp(addr1->domain, addr2->domain) == 0);
    1.57 @@ -109,7 +109,7 @@
    1.58  
    1.59  /* searches in ancestors of addr1 */
    1.60  gboolean
    1.61 -addr_isequal_parent(address* addr1, address* addr2, int (*cmpfunc) (const char*, const char*))
    1.62 +addr_isequal_parent(address *addr1, address *addr2, int (*cmpfunc) (const char*, const char*))
    1.63  {
    1.64  	address *addr;
    1.65  
    1.66 @@ -123,7 +123,7 @@
    1.67  /* careful, this is recursive */
    1.68  /* returns TRUE if ALL children have been delivered */
    1.69  gboolean
    1.70 -addr_is_delivered_children(address * addr)
    1.71 +addr_is_delivered_children(address *addr)
    1.72  {
    1.73  	GList *addr_node;
    1.74  
    1.75 @@ -141,7 +141,7 @@
    1.76  /* careful, this is recursive */
    1.77  /* returns TRUE if ALL children have been either delivered or have failed */
    1.78  gboolean
    1.79 -addr_is_finished_children(address * addr)
    1.80 +addr_is_finished_children(address *addr)
    1.81  {
    1.82  	GList *addr_node;
    1.83  
    1.84 @@ -158,7 +158,7 @@
    1.85  
    1.86  /* find original address */
    1.87  address*
    1.88 -addr_find_ancestor(address * addr)
    1.89 +addr_find_ancestor(address *addr)
    1.90  {
    1.91  	while (addr->parent)
    1.92  		addr = addr->parent;
    1.93 @@ -166,7 +166,7 @@
    1.94  }
    1.95  
    1.96  gchar*
    1.97 -addr_string(address * addr)
    1.98 +addr_string(address *addr)
    1.99  {
   1.100  	static gchar *buffer = NULL;
   1.101