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 wrap: on
line diff
--- a/src/masqmail.c	Wed Sep 14 12:20:40 2011 +0200
+++ b/src/masqmail.c	Thu Sep 22 15:07:40 2011 +0200
@@ -76,7 +76,7 @@
 
 #ifdef ENABLE_IDENT  /* so far used for that only */
 static gboolean
-is_in_netlist(gchar * host, GList * netlist)
+is_in_netlist(gchar *host, GList *netlist)
 {
 	guint hostip = inet_addr(host);
 	struct in_addr addr;
@@ -102,7 +102,7 @@
              ^          ^
 */
 gchar*
-get_optarg(char* argv[], gint* argp, char* cp)
+get_optarg(char *argv[], gint *argp, char *cp)
 {
 	if (*cp) {
 		/* this kind: -xval */
@@ -118,7 +118,7 @@
 }
 
 gboolean
-write_pidfile(gchar * name)
+write_pidfile(gchar *name)
 {
 	FILE *fptr;
 
@@ -204,7 +204,7 @@
 
 /* default mode if address args or -t is specified, or called as rmail */
 static void
-mode_accept(address * return_path, gchar * full_sender_name, guint accept_flags, char **addresses, int addr_cnt)
+mode_accept(address *return_path, gchar *full_sender_name, guint accept_flags, char **addresses, int addr_cnt)
 {
 	/* accept message on stdin */
 	accept_error err;
@@ -312,7 +312,7 @@
 return success if at least one message had been deleted
 */
 static int
-manipulate_queue(char* cmd, char* id[])
+manipulate_queue(char *cmd, char *id[])
 {
 	gboolean ok = FALSE;
 
@@ -372,7 +372,7 @@
 
 /* -qo, -q (without argument), or called as runq */
 static int
-run_queue(gboolean do_runq, gboolean do_runq_online, char* route_name)
+run_queue(gboolean do_runq, gboolean do_runq_online, char *route_name)
 {
 	int ret;
 
@@ -431,7 +431,7 @@
 main(int argc, char *argv[])
 {
 	gchar *progname;
-	char* opt;
+	char *opt;
 	gint arg;
 
 	gboolean do_listen = FALSE;