Mercurial > 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 wrap: on
line diff
--- a/src/accept.c Wed Sep 14 12:20:40 2011 +0200 +++ b/src/accept.c Thu Sep 22 15:07:40 2011 +0200 @@ -29,7 +29,7 @@ }; static gchar* -string_base62(gchar * res, guint value, gchar len) +string_base62(gchar *res, guint value, gchar len) { static gchar base62_chars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; gchar *p = res + len; @@ -62,7 +62,7 @@ */ accept_error -accept_message_stream(FILE * in, message * msg, guint flags) +accept_message_stream(FILE *in, message *msg, guint flags) { gchar *line, *line1; int line_size = MAX_DATALINE; @@ -131,7 +131,7 @@ if (line1[0] == ' ' || line1[0] == '\t') { /* continuation of 'folded' header: */ if (hdr) { - char* cp; + char *cp; cp = g_strconcat(hdr->header, line1, NULL); hdr->value = cp + (hdr->value - hdr->header); free(hdr->header); @@ -186,7 +186,7 @@ } accept_error -accept_message_prepare(message * msg, guint flags) +accept_message_prepare(message *msg, guint flags) { struct passwd *passwd = NULL; time_t rec_time = time(NULL); @@ -399,7 +399,7 @@ } accept_error -accept_message(FILE * in, message * msg, guint flags) +accept_message(FILE *in, message *msg, guint flags) { accept_error err;