comparison libpurple/protocols/oscar/flap_connection.c @ 22829:ab2322195dab

Minor changes... mostly whitespace related. Also changed some functions in family_admin.c to be void instead of returning the same int every time, and fixed a tiny memleak in family_admin.c. Oh, I think there was a variable in family_icbm.c that was being redeclared inside of a block--functionally it was fine, but it could have led to confusion.
author Mark Doliner <mark@kingant.net>
date Mon, 05 May 2008 09:22:46 +0000
parents da3de0190be2
children 8f353a311895
comparison
equal deleted inserted replaced
22821:61e0bcbf31ab 22829:ab2322195dab
113 struct timeval now; 113 struct timeval now;
114 114
115 conn = data; 115 conn = data;
116 gettimeofday(&now, NULL); 116 gettimeofday(&now, NULL);
117 117
118 purple_debug_info("oscar", "Attempting to send %i queued SNACs for %p\n", g_queue_get_length(conn->queued_snacs), conn); 118 purple_debug_info("oscar", "Attempting to send %u queued SNACs for %p\n", g_queue_get_length(conn->queued_snacs), conn);
119 while (!g_queue_is_empty(conn->queued_snacs)) 119 while (!g_queue_is_empty(conn->queued_snacs))
120 { 120 {
121 QueuedSnac *queued_snac; 121 QueuedSnac *queued_snac;
122 struct rateclass *rateclass; 122 struct rateclass *rateclass;
123 123
199 rateclass->current = new_current; 199 rateclass->current = new_current;
200 rateclass->last.tv_sec = now.tv_sec; 200 rateclass->last.tv_sec = now.tv_sec;
201 rateclass->last.tv_usec = now.tv_usec; 201 rateclass->last.tv_usec = now.tv_usec;
202 } 202 }
203 } else { 203 } else {
204 purple_debug_warning("oscar", "No rate class found for family %u subtype %u\n", family, subtype); 204 purple_debug_warning("oscar", "No rate class found for family %hu subtype %hu\n", family, subtype);
205 } 205 }
206 206
207 if (enqueue) 207 if (enqueue)
208 { 208 {
209 /* We've been sending too fast, so delay this message */ 209 /* We've been sending too fast, so delay this message */