Mercurial > masqmail
diff src/readsock.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 | 3654c502a4df |
children | b27f66555ba8 |
line wrap: on
line diff
--- a/src/readsock.c Wed Sep 14 12:20:40 2011 +0200 +++ b/src/readsock.c Thu Sep 22 15:07:40 2011 +0200 @@ -59,7 +59,7 @@ } static void -_read_chug(FILE * in) +_read_chug(FILE *in) { int c = 0; @@ -70,7 +70,7 @@ } static int -_read_line(FILE * in, char *buf, int buf_len, int timeout) +_read_line(FILE *in, char *buf, int buf_len, int timeout) { int p = 0; int c = 0; @@ -97,7 +97,7 @@ } int -read_sockline(FILE * in, char *buf, int buf_len, int timeout, unsigned int flags) +read_sockline(FILE *in, char *buf, int buf_len, int timeout, unsigned int flags) { int p = 0; @@ -131,7 +131,7 @@ } int -read_sockline1(FILE * in, char **pbuf, int *buf_len, int timeout, unsigned int flags) +read_sockline1(FILE *in, char **pbuf, int *buf_len, int timeout, unsigned int flags) { int p = 0, size = *buf_len; char *buf;