Mercurial > masqmail
diff src/smtp_in.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 | 53cf6be5843a |
children | b27f66555ba8 |
line wrap: on
line diff
--- a/src/smtp_in.c Wed Sep 14 12:20:40 2011 +0200 +++ b/src/smtp_in.c Thu Sep 22 15:07:40 2011 +0200 @@ -43,7 +43,7 @@ }; static smtp_cmd_id -get_id(const gchar * line) +get_id(const gchar *line) { gint i; for (i = 0; i < SMTP_NUM_IDS; i++) { @@ -80,7 +80,7 @@ Return false if address is too long. */ static gboolean -get_address(gchar * line, gchar * addr) +get_address(gchar *line, gchar *addr) { gchar *p = line; gchar *q = addr; @@ -110,7 +110,7 @@ } static smtp_connection* -create_base(gchar * remote_host) +create_base(gchar *remote_host) { smtp_connection *base = g_malloc(sizeof(smtp_connection)); if (!base) { @@ -130,7 +130,7 @@ } static void -smtp_printf(FILE * out, gchar * fmt, ...) +smtp_printf(FILE *out, gchar *fmt, ...) { va_list args; va_start(args, fmt); @@ -153,7 +153,7 @@ } void -smtp_in(FILE * in, FILE * out, gchar * remote_host, gchar * ident) +smtp_in(FILE *in, FILE *out, gchar *remote_host, gchar *ident) { gchar *buffer; smtp_cmd_id cmd_id;