masqmail

diff src/message.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 4c046561582a
children b27f66555ba8
line diff
     1.1 --- a/src/message.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/message.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -46,7 +46,7 @@
     1.4     internal format. Dot-stuffing is ignored in the size.
     1.5  */
     1.6  gint
     1.7 -msg_calc_size(message * msg, gboolean is_smtp)
     1.8 +msg_calc_size(message *msg, gboolean is_smtp)
     1.9  {
    1.10  	GList *node;
    1.11  	gint l_cnt = 0;  /* line count (we need to add so many '\r' for SMTP) */
    1.12 @@ -91,7 +91,7 @@
    1.13  }
    1.14  
    1.15  void
    1.16 -msg_free_data(message * msg)
    1.17 +msg_free_data(message *msg)
    1.18  {
    1.19  	GList *node;
    1.20  
    1.21 @@ -106,7 +106,7 @@
    1.22  }
    1.23  
    1.24  void
    1.25 -destroy_message(message * msg)
    1.26 +destroy_message(message *msg)
    1.27  {
    1.28  	GList *node;
    1.29  
    1.30 @@ -149,7 +149,7 @@
    1.31  }
    1.32  
    1.33  void
    1.34 -destroy_msg_list(GList * msg_list)
    1.35 +destroy_msg_list(GList *msg_list)
    1.36  {
    1.37  	GList *msg_node;
    1.38  
    1.39 @@ -161,7 +161,7 @@
    1.40  }
    1.41  
    1.42  msg_out*
    1.43 -create_msg_out(message * msg)
    1.44 +create_msg_out(message *msg)
    1.45  {
    1.46  	msg_out *msgout = g_malloc0(sizeof(msg_out));
    1.47  	msgout->msg = msg;
    1.48 @@ -169,7 +169,7 @@
    1.49  }
    1.50  
    1.51  msg_out*
    1.52 -clone_msg_out(msg_out * msgout_orig)
    1.53 +clone_msg_out(msg_out *msgout_orig)
    1.54  {
    1.55  	if (msgout_orig) {
    1.56  		msg_out *msgout = create_msg_out(msgout_orig->msg);
    1.57 @@ -192,7 +192,7 @@
    1.58  }
    1.59  
    1.60  void
    1.61 -destroy_msg_out(msg_out * msgout)
    1.62 +destroy_msg_out(msg_out *msgout)
    1.63  {
    1.64  	if (msgout) {
    1.65  		if (msgout->return_path)
    1.66 @@ -212,7 +212,7 @@
    1.67  }
    1.68  
    1.69  void
    1.70 -destroy_msg_out_list(GList * msgout_list)
    1.71 +destroy_msg_out_list(GList *msgout_list)
    1.72  {
    1.73  	GList *msgout_node;
    1.74