masqmail

diff src/expand.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 f671821d8222
children b27f66555ba8
line diff
     1.1 --- a/src/expand.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/expand.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -21,7 +21,7 @@
     1.4  #define MAX_VAR 50
     1.5  
     1.6  GList*
     1.7 -var_table_rcpt(GList * var_table, address * rcpt)
     1.8 +var_table_rcpt(GList *var_table, address *rcpt)
     1.9  {
    1.10  	gchar *tmp_str;
    1.11  
    1.12 @@ -36,7 +36,7 @@
    1.13  }
    1.14  
    1.15  GList*
    1.16 -var_table_msg(GList * var_table, message * msg)
    1.17 +var_table_msg(GList *var_table, message *msg)
    1.18  {
    1.19  	address *ret_path = msg->return_path;
    1.20  	gchar *tmp_str;
    1.21 @@ -55,7 +55,7 @@
    1.22  }
    1.23  
    1.24  GList*
    1.25 -var_table_conf(GList * var_table)
    1.26 +var_table_conf(GList *var_table)
    1.27  {
    1.28  	var_table = g_list_prepend(var_table, create_pair_string("host_name", conf.host_name));
    1.29  	var_table = g_list_prepend(var_table, create_pair_string("package", PACKAGE));
    1.30 @@ -65,7 +65,7 @@
    1.31  }
    1.32  
    1.33  gint
    1.34 -expand(GList * var_list, gchar * format, gchar * result, gint result_len)
    1.35 +expand(GList *var_list, gchar *format, gchar *result, gint result_len)
    1.36  {
    1.37  	gchar *p = format, *q = result;
    1.38  	gchar *vq;