masqmail
diff src/masqmail.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 | b45dc53f2829 |
children | b27f66555ba8 |
line diff
1.1 --- a/src/masqmail.c Wed Sep 14 12:20:40 2011 +0200 1.2 +++ b/src/masqmail.c Thu Sep 22 15:07:40 2011 +0200 1.3 @@ -76,7 +76,7 @@ 1.4 1.5 #ifdef ENABLE_IDENT /* so far used for that only */ 1.6 static gboolean 1.7 -is_in_netlist(gchar * host, GList * netlist) 1.8 +is_in_netlist(gchar *host, GList *netlist) 1.9 { 1.10 guint hostip = inet_addr(host); 1.11 struct in_addr addr; 1.12 @@ -102,7 +102,7 @@ 1.13 ^ ^ 1.14 */ 1.15 gchar* 1.16 -get_optarg(char* argv[], gint* argp, char* cp) 1.17 +get_optarg(char *argv[], gint *argp, char *cp) 1.18 { 1.19 if (*cp) { 1.20 /* this kind: -xval */ 1.21 @@ -118,7 +118,7 @@ 1.22 } 1.23 1.24 gboolean 1.25 -write_pidfile(gchar * name) 1.26 +write_pidfile(gchar *name) 1.27 { 1.28 FILE *fptr; 1.29 1.30 @@ -204,7 +204,7 @@ 1.31 1.32 /* default mode if address args or -t is specified, or called as rmail */ 1.33 static void 1.34 -mode_accept(address * return_path, gchar * full_sender_name, guint accept_flags, char **addresses, int addr_cnt) 1.35 +mode_accept(address *return_path, gchar *full_sender_name, guint accept_flags, char **addresses, int addr_cnt) 1.36 { 1.37 /* accept message on stdin */ 1.38 accept_error err; 1.39 @@ -312,7 +312,7 @@ 1.40 return success if at least one message had been deleted 1.41 */ 1.42 static int 1.43 -manipulate_queue(char* cmd, char* id[]) 1.44 +manipulate_queue(char *cmd, char *id[]) 1.45 { 1.46 gboolean ok = FALSE; 1.47 1.48 @@ -372,7 +372,7 @@ 1.49 1.50 /* -qo, -q (without argument), or called as runq */ 1.51 static int 1.52 -run_queue(gboolean do_runq, gboolean do_runq_online, char* route_name) 1.53 +run_queue(gboolean do_runq, gboolean do_runq_online, char *route_name) 1.54 { 1.55 int ret; 1.56 1.57 @@ -431,7 +431,7 @@ 1.58 main(int argc, char *argv[]) 1.59 { 1.60 gchar *progname; 1.61 - char* opt; 1.62 + char *opt; 1.63 gint arg; 1.64 1.65 gboolean do_listen = FALSE;