comparison src/fail_msg.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 fc1c6425c024
children b27f66555ba8
comparison
equal deleted inserted replaced
365:934a223e4ee8 366:41958685480d
21 #include "masqmail.h" 21 #include "masqmail.h"
22 #include "peopen.h" 22 #include "peopen.h"
23 #include "readsock.h" 23 #include "readsock.h"
24 24
25 gboolean 25 gboolean
26 fail_msg(message * msg, gchar * template, GList * failed_rcpts, gchar * err_fmt, va_list args) 26 fail_msg(message *msg, gchar *template, GList *failed_rcpts, gchar *err_fmt, va_list args)
27 { 27 {
28 gboolean ok = FALSE; 28 gboolean ok = FALSE;
29 address *ret_path = NULL; 29 address *ret_path = NULL;
30 30
31 /* do not bounce bounces, send to postmaster instead */ 31 /* do not bounce bounces, send to postmaster instead */
128 warned: |-------W-------------W------ 128 warned: |-------W-------------W------
129 result: |nnnyyyynnnnyyyyyyyyyynnnnnnn 129 result: |nnnyyyynnnnyyyyyyyyyynnnnnnn
130 */ 130 */
131 131
132 static gboolean 132 static gboolean
133 warn_msg_is_due(message * msg) 133 warn_msg_is_due(message *msg)
134 { 134 {
135 time_t now = time(NULL); 135 time_t now = time(NULL);
136 136
137 GList *node; 137 GList *node;
138 for (node = g_list_last(conf.warn_intervals); node; node = g_list_previous(node)) { 138 for (node = g_list_last(conf.warn_intervals); node; node = g_list_previous(node)) {
153 } 153 }
154 return FALSE; 154 return FALSE;
155 } 155 }
156 156
157 gboolean 157 gboolean
158 warn_msg(message * msg, gchar * template, GList * defered_rcpts, gchar * err_fmt, va_list args) 158 warn_msg(message *msg, gchar *template, GList *defered_rcpts, gchar *err_fmt, va_list args)
159 { 159 {
160 time_t now = time(NULL); 160 time_t now = time(NULL);
161 161
162 if (warn_msg_is_due(msg)) { 162 if (warn_msg_is_due(msg)) {
163 if (fail_msg(msg, template, defered_rcpts, err_fmt, args)) { 163 if (fail_msg(msg, template, defered_rcpts, err_fmt, args)) {