comparison src/fail_msg.c @ 254:82d168dd52fd

removed the obsolete pos argument from time_interval()
author markus schnalke <meillo@marmaro.de>
date Thu, 04 Nov 2010 14:45:42 -0300
parents bc9d9cd9ee8e
children fc1c6425c024
comparison
equal deleted inserted replaced
253:c28e8dfebfc3 254:82d168dd52fd
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 gint dummy;
137 136
138 GList *node; 137 GList *node;
139 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)) {
140 gchar *str_ival = (gchar *) (node->data); 139 gchar *str_ival = (gchar *) (node->data);
141 gint ival = time_interval(str_ival, &dummy); 140 gint ival = time_interval(str_ival);
142 if (ival >= 0) { 141 if (ival >= 0) {
143 DEBUG(5) debugf("ival = %d\n", ival); 142 DEBUG(5) debugf("ival = %d\n", ival);
144 DEBUG(5) debugf("now - msg->received_time = %d\n", now - msg->received_time); 143 DEBUG(5) debugf("now - msg->received_time = %d\n", now - msg->received_time);
145 if ((now - msg->received_time) > ival) { 144 if ((now - msg->received_time) > ival) {
146 if (msg->warned_time != 0) { 145 if (msg->warned_time != 0) {