Mercurial > 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 wrap: on
line diff
--- a/src/lookup.c Wed Sep 14 12:20:40 2011 +0200 +++ b/src/lookup.c Thu Sep 22 15:07:40 2011 +0200 @@ -122,7 +122,7 @@ } static int -dns_getip(guint32 * ip) +dns_getip(guint32 *ip) { int ret; @@ -167,7 +167,7 @@ } int -dns_look_ip(gchar * domain, guint32 * ip) +dns_look_ip(gchar *domain, guint32 *ip) { gchar *n = domain; @@ -203,7 +203,7 @@ } GList* -resolve_dns_a(GList * list, gchar * domain) +resolve_dns_a(GList *list, gchar *domain) { int ret; @@ -235,7 +235,7 @@ } GList* -resolve_dns_mx(GList * list, gchar * domain) +resolve_dns_mx(GList *list, gchar *domain) { GList *node; int ret; @@ -286,7 +286,7 @@ /* now something completely different... */ GList* -resolve_byname(GList * list, gchar * domain) +resolve_byname(GList *list, gchar *domain) { struct hostent *hent;