masqmail

diff src/spool.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 b45dc53f2829
children b27f66555ba8
line diff
     1.1 --- a/src/spool.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/spool.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -23,7 +23,7 @@
     1.4  #include "dotlock.h"
     1.5  
     1.6  static gint
     1.7 -read_line(FILE * in, gchar * buf, gint buf_len)
     1.8 +read_line(FILE *in, gchar *buf, gint buf_len)
     1.9  {
    1.10  	gint p = 0;
    1.11  	gint c;
    1.12 @@ -49,7 +49,7 @@
    1.13  }
    1.14  
    1.15  static void
    1.16 -spool_write_rcpt(FILE * out, address * rcpt)
    1.17 +spool_write_rcpt(FILE *out, address *rcpt)
    1.18  {
    1.19  	gchar dlvrd_char = addr_is_delivered(rcpt) ? 'X' : (addr_is_failed(rcpt) ? 'F' : ' ');
    1.20  
    1.21 @@ -68,7 +68,7 @@
    1.22  }
    1.23  
    1.24  static address*
    1.25 -spool_scan_rcpt(gchar * line)
    1.26 +spool_scan_rcpt(gchar *line)
    1.27  {
    1.28  	address *rcpt = NULL;
    1.29  
    1.30 @@ -88,7 +88,7 @@
    1.31  }
    1.32  
    1.33  gboolean
    1.34 -spool_read_data(message * msg)
    1.35 +spool_read_data(message *msg)
    1.36  {
    1.37  	FILE *in;
    1.38  	gchar *spool_file;
    1.39 @@ -119,7 +119,7 @@
    1.40  }
    1.41  
    1.42  gboolean
    1.43 -spool_read_header(message * msg)
    1.44 +spool_read_header(message *msg)
    1.45  {
    1.46  	FILE *in;
    1.47  	gchar *spool_file;
    1.48 @@ -201,7 +201,7 @@
    1.49  }
    1.50  
    1.51  message*
    1.52 -msg_spool_read(gchar * uid)
    1.53 +msg_spool_read(gchar *uid)
    1.54  {
    1.55  	message *msg;
    1.56  	gboolean ok = FALSE;
    1.57 @@ -220,7 +220,7 @@
    1.58     mail ids. Better call spool_write(msg, FALSE).
    1.59  */
    1.60  static gboolean
    1.61 -spool_write_header(message * msg)
    1.62 +spool_write_header(message *msg)
    1.63  {
    1.64  	GList *node;
    1.65  	gchar *spool_file, *tmp_file;
    1.66 @@ -295,7 +295,7 @@
    1.67  }
    1.68  
    1.69  gboolean
    1.70 -spool_write(message * msg, gboolean do_write_data)
    1.71 +spool_write(message *msg, gboolean do_write_data)
    1.72  {
    1.73  	GList *list;
    1.74  	gchar *spool_file, *tmp_file;
    1.75 @@ -360,7 +360,7 @@
    1.76  #define MAX_LOCKAGE 300
    1.77  
    1.78  gboolean
    1.79 -spool_lock(gchar * uid)
    1.80 +spool_lock(gchar *uid)
    1.81  {
    1.82  	uid_t saved_uid, saved_gid;
    1.83  	gchar *hitch_name;
    1.84 @@ -391,7 +391,7 @@
    1.85  }
    1.86  
    1.87  gboolean
    1.88 -spool_unlock(gchar * uid)
    1.89 +spool_unlock(gchar *uid)
    1.90  {
    1.91  	uid_t saved_uid, saved_gid;
    1.92  	gchar *lock_name;
    1.93 @@ -413,7 +413,7 @@
    1.94  }
    1.95  
    1.96  gboolean
    1.97 -spool_delete_all(message * msg)
    1.98 +spool_delete_all(message *msg)
    1.99  {
   1.100  	uid_t saved_uid, saved_gid;
   1.101  	gchar *spool_file;