Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoo_profile.c @ 27773:0f3a131d23da
- import nosuke's hash 244 patch and others to yahoo plugin
- do not perform any conversion in sanitize_* if _WIN32 defined
- suppress warning as much as possible
- fix indentation
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 29 Feb 2008 17:56:13 +0000 |
parents | 76ff0ad87964 |
children | 1a121394bfde |
comparison
equal
deleted
inserted
replaced
27772:839cc551cad9 | 27773:0f3a131d23da |
---|---|
669 NULL, | 669 NULL, |
670 NULL | 670 NULL |
671 }, | 671 }, |
672 }; | 672 }; |
673 | 673 |
674 #if 0 | |
674 static char *yahoo_info_date_reformat(const char *field, size_t len) | 675 static char *yahoo_info_date_reformat(const char *field, size_t len) |
675 { | 676 { |
676 char *tmp = g_strndup(field, len); | 677 char *tmp = g_strndup(field, len); |
677 time_t t = purple_str_to_time(tmp, FALSE, NULL, NULL, NULL); | 678 time_t t = purple_str_to_time(tmp, FALSE, NULL, NULL, NULL); |
678 | 679 |
679 g_free(tmp); | 680 g_free(tmp); |
680 return g_strdup(purple_date_format_short(localtime(&t))); | 681 return g_strdup(purple_date_format_short(localtime(&t))); |
681 } | 682 } |
683 #endif | |
682 | 684 |
683 static char *yahoo_remove_nonbreaking_spaces(char *str) | 685 static char *yahoo_remove_nonbreaking_spaces(char *str) |
684 { | 686 { |
685 char *p; | 687 char *p; |
686 while ((p = strstr(str, " ")) != NULL) { | 688 while ((p = strstr(str, " ")) != NULL) { |