masqmail

diff src/header.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 01d2f7a17bf0
children b27f66555ba8
line diff
     1.1 --- a/src/header.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/header.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -71,7 +71,7 @@
     1.4     else finds all headers matching header
     1.5  */
     1.6  GList*
     1.7 -find_header(GList * hdr_list, header_id id, gchar * hdr_str)
     1.8 +find_header(GList *hdr_list, header_id id, gchar *hdr_str)
     1.9  {
    1.10  	GList *found_list = NULL;
    1.11  	GList *node;
    1.12 @@ -103,7 +103,7 @@
    1.13  }
    1.14  
    1.15  void
    1.16 -header_unfold(header * hdr)
    1.17 +header_unfold(header *hdr)
    1.18  {
    1.19          char *src = hdr->header;
    1.20          char *dest = src;
    1.21 @@ -133,13 +133,13 @@
    1.22     (We exclude the newline because the RFCs deal with it this way)
    1.23  */
    1.24  void
    1.25 -header_fold(header* hdr, unsigned int maxlen)
    1.26 +header_fold(header *hdr, unsigned int maxlen)
    1.27  {
    1.28  	int len = strlen(hdr->header);
    1.29 -	char* src = hdr->header;
    1.30 -	char* dest;
    1.31 -	char* tmp;
    1.32 -	char* p;
    1.33 +	char *src = hdr->header;
    1.34 +	char *dest;
    1.35 +	char *tmp;
    1.36 +	char *p;
    1.37  	int valueoffset;
    1.38  
    1.39  	if (len <= maxlen) {
    1.40 @@ -209,7 +209,7 @@
    1.41  }
    1.42  
    1.43  header*
    1.44 -create_header(header_id id, gchar * fmt, ...)
    1.45 +create_header(header_id id, gchar *fmt, ...)
    1.46  {
    1.47  	gchar *p;
    1.48  	header *hdr;
    1.49 @@ -242,7 +242,7 @@
    1.50  }
    1.51  
    1.52  void
    1.53 -destroy_header(header * hdr)
    1.54 +destroy_header(header *hdr)
    1.55  {
    1.56  	if (hdr) {
    1.57  		if (hdr->header) {
    1.58 @@ -253,7 +253,7 @@
    1.59  }
    1.60  
    1.61  header*
    1.62 -copy_header(header * hdr)
    1.63 +copy_header(header *hdr)
    1.64  {
    1.65  	header *new_hdr = NULL;
    1.66  
    1.67 @@ -267,7 +267,7 @@
    1.68  }
    1.69  
    1.70  header*
    1.71 -get_header(gchar * line)
    1.72 +get_header(gchar *line)
    1.73  {
    1.74  	gchar *p = line;
    1.75  	gchar buf[64], *q = buf;