comparison mcabber/src/jab_iq.c @ 965:1bdf0f1b16c0

Use U suffix for unsigned defines Also fix a few small typos: value 2 (1<<1) weren't used in enums.
author Mikael Berthe <mikael@lilotux.net>
date Wed, 27 Sep 2006 22:57:23 +0200
parents 8bf36cef8aa6
children 5b01de4ac5e1 923cf5a92b44
comparison
equal deleted inserted replaced
964:2c645e0a3304 965:1bdf0f1b16c0
134 i = p->data; 134 i = p->data;
135 // We must get next IQ eviqs element now because the current one 135 // We must get next IQ eviqs element now because the current one
136 // could be freed. 136 // could be freed.
137 p = g_slist_next(p); 137 p = g_slist_next(p);
138 138
139 if ((!i->ts_expire && now_t > i->ts_create + IQS_MAX_TIMEOUT) || 139 if ((!i->ts_expire && now_t > i->ts_create + (time_t)IQS_MAX_TIMEOUT) ||
140 (i->ts_expire && now_t > i->ts_expire)) { 140 (i->ts_expire && now_t > i->ts_expire)) {
141 iqs_callback(i->id, NULL, IQS_CONTEXT_TIMEOUT); 141 iqs_callback(i->id, NULL, IQS_CONTEXT_TIMEOUT);
142 } 142 }
143 } 143 }
144 } 144 }