comparison libpurple/savedstatuses.c @ 27066:d2424873c666

propagate from branch 'im.pidgin.pidgin' (head 36e85b01808a3c6e32116cb8b71b10e31b0da072) to branch 'im.pidgin.cpw.malu.client_type' (head 23d0d225ef28e21781c194b5c243757309028a55)
author Marcus Lundblad <ml@update.uu.se>
date Sun, 17 May 2009 19:04:15 +0000
parents 8290e36a5a73
children 32a707746454
comparison
equal deleted inserted replaced
27065:2dfb639b4f26 27066:d2424873c666
283 */ 283 */
284 xmlnode_set_attrib(node, "name", "Auto-Cached"); 284 xmlnode_set_attrib(node, "name", "Auto-Cached");
285 xmlnode_set_attrib(node, "transient", "true"); 285 xmlnode_set_attrib(node, "transient", "true");
286 } 286 }
287 287
288 snprintf(buf, sizeof(buf), "%lu", status->creation_time); 288 g_snprintf(buf, sizeof(buf), "%lu", status->creation_time);
289 xmlnode_set_attrib(node, "created", buf); 289 xmlnode_set_attrib(node, "created", buf);
290 290
291 snprintf(buf, sizeof(buf), "%lu", status->lastused); 291 g_snprintf(buf, sizeof(buf), "%lu", status->lastused);
292 xmlnode_set_attrib(node, "lastused", buf); 292 xmlnode_set_attrib(node, "lastused", buf);
293 293
294 snprintf(buf, sizeof(buf), "%u", status->usage_count); 294 g_snprintf(buf, sizeof(buf), "%u", status->usage_count);
295 xmlnode_set_attrib(node, "usage_count", buf); 295 xmlnode_set_attrib(node, "usage_count", buf);
296 296
297 child = xmlnode_new_child(node, "state"); 297 child = xmlnode_new_child(node, "state");
298 xmlnode_insert_data(child, purple_primitive_get_id_from_type(status->type), -1); 298 xmlnode_insert_data(child, purple_primitive_get_id_from_type(status->type), -1);
299 299