masqmail
diff src/lookup.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 | 996b53a50f55 |
children | b27f66555ba8 |
line diff
1.1 --- a/src/lookup.c Wed Sep 14 12:20:40 2011 +0200 1.2 +++ b/src/lookup.c Thu Sep 22 15:07:40 2011 +0200 1.3 @@ -122,7 +122,7 @@ 1.4 } 1.5 1.6 static int 1.7 -dns_getip(guint32 * ip) 1.8 +dns_getip(guint32 *ip) 1.9 { 1.10 int ret; 1.11 1.12 @@ -167,7 +167,7 @@ 1.13 } 1.14 1.15 int 1.16 -dns_look_ip(gchar * domain, guint32 * ip) 1.17 +dns_look_ip(gchar *domain, guint32 *ip) 1.18 { 1.19 gchar *n = domain; 1.20 1.21 @@ -203,7 +203,7 @@ 1.22 } 1.23 1.24 GList* 1.25 -resolve_dns_a(GList * list, gchar * domain) 1.26 +resolve_dns_a(GList *list, gchar *domain) 1.27 { 1.28 int ret; 1.29 1.30 @@ -235,7 +235,7 @@ 1.31 } 1.32 1.33 GList* 1.34 -resolve_dns_mx(GList * list, gchar * domain) 1.35 +resolve_dns_mx(GList *list, gchar *domain) 1.36 { 1.37 GList *node; 1.38 int ret; 1.39 @@ -286,7 +286,7 @@ 1.40 /* now something completely different... */ 1.41 1.42 GList* 1.43 -resolve_byname(GList * list, gchar * domain) 1.44 +resolve_byname(GList *list, gchar *domain) 1.45 { 1.46 struct hostent *hent; 1.47