Mercurial > pidgin
comparison src/protocols/oscar/locate.c @ 10990:8d74ae785a46
[gaim-migrate @ 12828]
More compile warning getting rid of. Also fix the crash from my last
batch of comile warning getting rid ofs.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Jun 2005 04:33:52 +0000 |
parents | ecc0f22db510 |
children | 1798ad0be460 |
comparison
equal
deleted
inserted
replaced
10989:b4919e8c634c | 10990:8d74ae785a46 |
---|---|
825 | 825 |
826 if (!bs || !info) | 826 if (!bs || !info) |
827 return -EINVAL; | 827 return -EINVAL; |
828 | 828 |
829 aimbs_put8(bs, strlen(info->sn)); | 829 aimbs_put8(bs, strlen(info->sn)); |
830 aimbs_putraw(bs, info->sn, strlen(info->sn)); | 830 aimbs_putstr(bs, info->sn); |
831 | 831 |
832 aimbs_put16(bs, info->warnlevel); | 832 aimbs_put16(bs, info->warnlevel); |
833 | 833 |
834 if (info->present & AIM_USERINFO_PRESENT_FLAGS) | 834 if (info->present & AIM_USERINFO_PRESENT_FLAGS) |
835 aim_tlvlist_add_16(&tlvlist, 0x0001, info->flags); | 835 aim_tlvlist_add_16(&tlvlist, 0x0001, info->flags); |
1237 | 1237 |
1238 snacid = aim_cachesnac(sess, 0x0002, 0x000b, 0x0000, NULL, 0); | 1238 snacid = aim_cachesnac(sess, 0x0002, 0x000b, 0x0000, NULL, 0); |
1239 | 1239 |
1240 aim_putsnac(&fr->data, 0x0002, 0x000b, 0x0000, snacid); | 1240 aim_putsnac(&fr->data, 0x0002, 0x000b, 0x0000, snacid); |
1241 aimbs_put8(&fr->data, strlen(sn)); | 1241 aimbs_put8(&fr->data, strlen(sn)); |
1242 aimbs_putraw(&fr->data, sn, strlen(sn)); | 1242 aimbs_putstr(&fr->data, sn); |
1243 | 1243 |
1244 aim_tx_enqueue(sess, fr); | 1244 aim_tx_enqueue(sess, fr); |
1245 | 1245 |
1246 return 0; | 1246 return 0; |
1247 } | 1247 } |
1317 snacid = aim_cachesnac(sess, 0x0002, 0x0015, 0x0000, sn, strlen(sn)+1); | 1317 snacid = aim_cachesnac(sess, 0x0002, 0x0015, 0x0000, sn, strlen(sn)+1); |
1318 | 1318 |
1319 aim_putsnac(&fr->data, 0x0002, 0x0015, 0x0000, snacid); | 1319 aim_putsnac(&fr->data, 0x0002, 0x0015, 0x0000, snacid); |
1320 aimbs_put32(&fr->data, flags); | 1320 aimbs_put32(&fr->data, flags); |
1321 aimbs_put8(&fr->data, strlen(sn)); | 1321 aimbs_put8(&fr->data, strlen(sn)); |
1322 aimbs_putraw(&fr->data, sn, strlen(sn)); | 1322 aimbs_putstr(&fr->data, sn); |
1323 | 1323 |
1324 aim_tx_enqueue(sess, fr); | 1324 aim_tx_enqueue(sess, fr); |
1325 | 1325 |
1326 return 0; | 1326 return 0; |
1327 } | 1327 } |