Mercurial > masqmail
diff src/connect.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 | fc1c6425c024 |
children | b27f66555ba8 |
line wrap: on
line diff
--- a/src/connect.c Wed Sep 14 12:20:40 2011 +0200 +++ b/src/connect.c Thu Sep 22 15:07:40 2011 +0200 @@ -18,7 +18,7 @@ #include "masqmail.h" static GList* -resolve_ip(GList * list, gchar * ip) +resolve_ip(GList *list, gchar *ip) { struct in_addr ia; if (inet_aton(ip, &ia)) { @@ -34,7 +34,7 @@ } mxip_addr* -connect_hostlist(int *psockfd, gchar * host, guint port, GList * addr_list) +connect_hostlist(int *psockfd, gchar *host, guint port, GList *addr_list) { GList *addr_node; struct sockaddr_in saddr; @@ -86,7 +86,7 @@ */ mxip_addr* -connect_resolvelist(int *psockfd, gchar * host, guint port, GList * res_func_list) +connect_resolvelist(int *psockfd, gchar *host, guint port, GList *res_func_list) { GList *res_node; GList *addr_list;