comparison src/protocols/jabber/buddy.c @ 10441:e0a4b8586cbe

[gaim-migrate @ 11701] compile warning fixes, and make an error message a little more clear as to the cause if someone wants to word it better, go right ahead committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 28 Dec 2004 07:33:51 +0000
parents 09876d57c520
children 937697da5233
comparison
equal deleted inserted replaced
10440:0a7f03ee3a61 10441:e0a4b8586cbe
379 379
380 if(vc_node) { 380 if(vc_node) {
381 if (vc_node->name && 381 if (vc_node->name &&
382 !g_ascii_strncasecmp(vc_node->name, "vCard", 5)) { 382 !g_ascii_strncasecmp(vc_node->name, "vCard", 5)) {
383 GError *error = NULL; 383 GError *error = NULL;
384 char *avatar_data; 384 unsigned char *avatar_data;
385 gsize avatar_len; 385 gsize avatar_len;
386 386
387 if(avatar_file && g_file_get_contents(avatar_file, &avatar_data, &avatar_len, &error)) { 387 if(avatar_file && g_file_get_contents(avatar_file, &avatar_data, &avatar_len, &error)) {
388 xmlnode *photo; 388 xmlnode *photo;
389 char *enc; 389 unsigned char *enc;
390 int i; 390 int i;
391 unsigned char hashval[20]; 391 unsigned char hashval[20];
392 char *p, hash[41]; 392 char *p, hash[41];
393 393
394 photo = xmlnode_new_child(vc_node, "PHOTO"); 394 photo = xmlnode_new_child(vc_node, "PHOTO");