Mercurial > masqmail
comparison src/interface.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 | 26e34ae9a3e3 |
children | b27f66555ba8 |
comparison
equal
deleted
inserted
replaced
365:934a223e4ee8 | 366:41958685480d |
---|---|
20 | 20 |
21 /* define if you get problems... */ | 21 /* define if you get problems... */ |
22 /*#define SOCKADDR_OLD 1*/ | 22 /*#define SOCKADDR_OLD 1*/ |
23 | 23 |
24 gboolean | 24 gboolean |
25 init_sockaddr(struct sockaddr_in * name, interface * iface) | 25 init_sockaddr(struct sockaddr_in *name, interface *iface) |
26 { | 26 { |
27 struct hostent *he; | 27 struct hostent *he; |
28 struct in_addr ia; | 28 struct in_addr ia; |
29 | 29 |
30 #ifdef SOCKADDR_OLD | 30 #ifdef SOCKADDR_OLD |
64 | 64 |
65 return TRUE; | 65 return TRUE; |
66 } | 66 } |
67 | 67 |
68 int | 68 int |
69 make_server_socket(interface * iface) | 69 make_server_socket(interface *iface) |
70 { | 70 { |
71 int sock = -1; | 71 int sock = -1; |
72 struct sockaddr_in server; | 72 struct sockaddr_in server; |
73 | 73 |
74 memset(&server, 0, sizeof(struct sockaddr_in)); | 74 memset(&server, 0, sizeof(struct sockaddr_in)); |