masqmail

diff src/mservdetect.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 bfa7a8b566da
children b27f66555ba8
line diff
     1.1 --- a/src/mservdetect.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/mservdetect.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -23,7 +23,7 @@
     1.4  
     1.5  
     1.6  gboolean
     1.7 -init_sockaddr2(struct sockaddr_in * name, gchar* addr, int port)
     1.8 +init_sockaddr2(struct sockaddr_in *name, gchar *addr, int port)
     1.9  {
    1.10  	struct hostent *he;
    1.11  	struct in_addr ia;
    1.12 @@ -46,7 +46,7 @@
    1.13  
    1.14  
    1.15  gchar*
    1.16 -mserver_detect_online(gchar* addr, int port)
    1.17 +mserver_detect_online(gchar *addr, int port)
    1.18  {
    1.19  	struct sockaddr_in saddr;
    1.20  	gchar *ret = NULL;
    1.21 @@ -128,7 +128,7 @@
    1.22  int
    1.23  main(int argc, char *argv[])
    1.24  {
    1.25 -	gchar* addr;
    1.26 +	gchar *addr;
    1.27  	int port;
    1.28  	gchar *name;
    1.29