Mercurial > pidgin
comparison src/protocols/jabber/buddy.c @ 11509:fca94aa83486
[gaim-migrate @ 13754]
I thought I understood this type-punned pointer stuff, perhaps I'm wrong.
Why is a gchar ** considered incompatable with a guchar **?
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Sun, 11 Sep 2005 15:51:45 +0000 |
parents | ce2a2e793835 |
children | d41aabad3b7a |
comparison
equal
deleted
inserted
replaced
11508:c04d93398852 | 11509:fca94aa83486 |
---|---|
378 | 378 |
379 if(vc_node) { | 379 if(vc_node) { |
380 if (vc_node->name && | 380 if (vc_node->name && |
381 !g_ascii_strncasecmp(vc_node->name, "vCard", 5)) { | 381 !g_ascii_strncasecmp(vc_node->name, "vCard", 5)) { |
382 GError *error = NULL; | 382 GError *error = NULL; |
383 unsigned char *avatar_data; | 383 gchar *avatar_data_tmp; |
384 guchar *avatar_data; | |
384 gsize avatar_len; | 385 gsize avatar_len; |
385 | 386 |
386 if(avatar_file && g_file_get_contents(avatar_file, (gchar **)&avatar_data, &avatar_len, &error)) { | 387 if(avatar_file && g_file_get_contents(avatar_file, &avatar_data_tmp, &avatar_len, &error)) { |
387 xmlnode *photo, *binval; | 388 xmlnode *photo, *binval; |
388 gchar *enc; | 389 gchar *enc; |
390 avatar_data = (guchar *) avatar_data_tmp; | |
389 int i; | 391 int i; |
390 unsigned char hashval[20]; | 392 unsigned char hashval[20]; |
391 char *p, hash[41]; | 393 char *p, hash[41]; |
392 | 394 |
393 photo = xmlnode_new_child(vc_node, "PHOTO"); | 395 photo = xmlnode_new_child(vc_node, "PHOTO"); |