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 diff
     1.1 --- a/src/smtp_in.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/smtp_in.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -43,7 +43,7 @@
     1.4  };
     1.5  
     1.6  static smtp_cmd_id
     1.7 -get_id(const gchar * line)
     1.8 +get_id(const gchar *line)
     1.9  {
    1.10  	gint i;
    1.11  	for (i = 0; i < SMTP_NUM_IDS; i++) {
    1.12 @@ -80,7 +80,7 @@
    1.13     Return false if address is too long.
    1.14  */
    1.15  static gboolean
    1.16 -get_address(gchar * line, gchar * addr)
    1.17 +get_address(gchar *line, gchar *addr)
    1.18  {
    1.19  	gchar *p = line;
    1.20  	gchar *q = addr;
    1.21 @@ -110,7 +110,7 @@
    1.22  }
    1.23  
    1.24  static smtp_connection*
    1.25 -create_base(gchar * remote_host)
    1.26 +create_base(gchar *remote_host)
    1.27  {
    1.28  	smtp_connection *base = g_malloc(sizeof(smtp_connection));
    1.29  	if (!base) {
    1.30 @@ -130,7 +130,7 @@
    1.31  }
    1.32  
    1.33  static void
    1.34 -smtp_printf(FILE * out, gchar * fmt, ...)
    1.35 +smtp_printf(FILE *out, gchar *fmt, ...)
    1.36  {
    1.37  	va_list args;
    1.38  	va_start(args, fmt);
    1.39 @@ -153,7 +153,7 @@
    1.40  }
    1.41  
    1.42  void
    1.43 -smtp_in(FILE * in, FILE * out, gchar * remote_host, gchar * ident)
    1.44 +smtp_in(FILE *in, FILE *out, gchar *remote_host, gchar *ident)
    1.45  {
    1.46  	gchar *buffer;
    1.47  	smtp_cmd_id cmd_id;