libpurple/protocols/oscar/tlv.c

changeset 34457
a9d3726c3a8f
parent 34304
faf0414a8b51
child 35989
2b5a26ddbb69
equal deleted inserted replaced
34456:d69aa7d3530c 34457:a9d3726c3a8f
317 */ 317 */
318 int aim_tlvlist_add_8(GSList **list, const guint16 type, const guint8 value) 318 int aim_tlvlist_add_8(GSList **list, const guint16 type, const guint8 value)
319 { 319 {
320 guint8 v8[1]; 320 guint8 v8[1];
321 321
322 aimutil_put8(v8, value); 322 (void)aimutil_put8(v8, value);
323 323
324 return aim_tlvlist_add_raw(list, type, 1, v8); 324 return aim_tlvlist_add_raw(list, type, 1, v8);
325 } 325 }
326 326
327 /** 327 /**
334 */ 334 */
335 int aim_tlvlist_add_16(GSList **list, const guint16 type, const guint16 value) 335 int aim_tlvlist_add_16(GSList **list, const guint16 type, const guint16 value)
336 { 336 {
337 guint8 v16[2]; 337 guint8 v16[2];
338 338
339 aimutil_put16(v16, value); 339 (void)aimutil_put16(v16, value);
340 340
341 return aim_tlvlist_add_raw(list, type, 2, v16); 341 return aim_tlvlist_add_raw(list, type, 2, v16);
342 } 342 }
343 343
344 /** 344 /**
351 */ 351 */
352 int aim_tlvlist_add_32(GSList **list, const guint16 type, const guint32 value) 352 int aim_tlvlist_add_32(GSList **list, const guint16 type, const guint32 value)
353 { 353 {
354 guint8 v32[4]; 354 guint8 v32[4];
355 355
356 aimutil_put32(v32, value); 356 (void)aimutil_put32(v32, value);
357 357
358 return aim_tlvlist_add_raw(list, type, 4, v32); 358 return aim_tlvlist_add_raw(list, type, 4, v32);
359 } 359 }
360 360
361 /** 361 /**
583 */ 583 */
584 int aim_tlvlist_replace_8(GSList **list, const guint16 type, const guint8 value) 584 int aim_tlvlist_replace_8(GSList **list, const guint16 type, const guint8 value)
585 { 585 {
586 guint8 v8[1]; 586 guint8 v8[1];
587 587
588 aimutil_put8(v8, value); 588 (void)aimutil_put8(v8, value);
589 589
590 return aim_tlvlist_replace_raw(list, type, 1, v8); 590 return aim_tlvlist_replace_raw(list, type, 1, v8);
591 } 591 }
592 592
593 /** 593 /**
602 */ 602 */
603 int aim_tlvlist_replace_32(GSList **list, const guint16 type, const guint32 value) 603 int aim_tlvlist_replace_32(GSList **list, const guint16 type, const guint32 value)
604 { 604 {
605 guint8 v32[4]; 605 guint8 v32[4];
606 606
607 aimutil_put32(v32, value); 607 (void)aimutil_put32(v32, value);
608 608
609 return aim_tlvlist_replace_raw(list, type, 4, v32); 609 return aim_tlvlist_replace_raw(list, type, 4, v32);
610 } 610 }
611 611
612 /** 612 /**

mercurial