masqmail

diff src/accept.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 9d49dffc3070
children b27f66555ba8
line diff
     1.1 --- a/src/accept.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/accept.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -29,7 +29,7 @@
     1.4  };
     1.5  
     1.6  static gchar*
     1.7 -string_base62(gchar * res, guint value, gchar len)
     1.8 +string_base62(gchar *res, guint value, gchar len)
     1.9  {
    1.10  	static gchar base62_chars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
    1.11  	gchar *p = res + len;
    1.12 @@ -62,7 +62,7 @@
    1.13  */
    1.14  
    1.15  accept_error
    1.16 -accept_message_stream(FILE * in, message * msg, guint flags)
    1.17 +accept_message_stream(FILE *in, message *msg, guint flags)
    1.18  {
    1.19  	gchar *line, *line1;
    1.20  	int line_size = MAX_DATALINE;
    1.21 @@ -131,7 +131,7 @@
    1.22  			if (line1[0] == ' ' || line1[0] == '\t') {
    1.23  				/* continuation of 'folded' header: */
    1.24  				if (hdr) {
    1.25 -					char* cp;
    1.26 +					char *cp;
    1.27  					cp = g_strconcat(hdr->header, line1, NULL);
    1.28  					hdr->value = cp + (hdr->value - hdr->header);
    1.29  					free(hdr->header);
    1.30 @@ -186,7 +186,7 @@
    1.31  }
    1.32  
    1.33  accept_error
    1.34 -accept_message_prepare(message * msg, guint flags)
    1.35 +accept_message_prepare(message *msg, guint flags)
    1.36  {
    1.37  	struct passwd *passwd = NULL;
    1.38  	time_t rec_time = time(NULL);
    1.39 @@ -399,7 +399,7 @@
    1.40  }
    1.41  
    1.42  accept_error
    1.43 -accept_message(FILE * in, message * msg, guint flags)
    1.44 +accept_message(FILE *in, message *msg, guint flags)
    1.45  {
    1.46  	accept_error err;
    1.47