comparison twitter_api.c @ 362:c6392a86839b

compilation fix for gcc 4.6. patch by dai <d+pidgin@vdr.jp>
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 12 May 2011 23:53:50 +0900
parents 732de90812d8
children
comparison
equal deleted inserted replaced
361:93cab0334b87 362:c6392a86839b
894 void 894 void
895 post_status_with_api(PurpleAccount *account, char **buffer) 895 post_status_with_api(PurpleAccount *account, char **buffer)
896 { 896 {
897 char *request, *header; 897 char *request, *header;
898 const char *url_encoded = g_uri_escape_string(*buffer, "", FALSE); 898 const char *url_encoded = g_uri_escape_string(*buffer, "", FALSE);
899 PurpleConversation *conv;
900 char *oauth; 899 char *oauth;
901 twitter_message_t *tm; 900 twitter_message_t *tm;
902 const char *a_key = NULL; 901 const char *a_key = NULL;
903 const char *a_sec = NULL; 902 const char *a_sec = NULL;
904 oauth_request_t oauth_req; 903 oauth_request_t oauth_req;
905
906 conv = purple_find_conversation_with_account(
907 PURPLE_CONV_TYPE_ANY, "twitter@twitter.com",
908 account_for_twitter); /* xxx */
909 904
910 a_key = purple_prefs_get_string(OPT_AKEY_TWITTER); 905 a_key = purple_prefs_get_string(OPT_AKEY_TWITTER);
911 a_sec = purple_prefs_get_string(OPT_ASEC_TWITTER); 906 a_sec = purple_prefs_get_string(OPT_ASEC_TWITTER);
912 907
913 if(!a_key || !a_sec) { 908 if(!a_key || !a_sec) {
967 { 962 {
968 char *header, *request; 963 char *header, *request;
969 char *oauth; 964 char *oauth;
970 const char *a_key = NULL; 965 const char *a_key = NULL;
971 const char *a_sec = NULL; 966 const char *a_sec = NULL;
972 PurpleConversation *conv;
973 oauth_request_t oauth_req; 967 oauth_request_t oauth_req;
974
975 conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY,
976 "twitter@twitter.com",
977 account_for_twitter); /* xxx */
978
979 968
980 a_key = purple_prefs_get_string(OPT_AKEY_TWITTER); 969 a_key = purple_prefs_get_string(OPT_AKEY_TWITTER);
981 a_sec = purple_prefs_get_string(OPT_ASEC_TWITTER); 970 a_sec = purple_prefs_get_string(OPT_ASEC_TWITTER);
982 971
983 if(!a_key || !a_sec) { 972 if(!a_key || !a_sec) {
1031 { 1020 {
1032 char *header, *request; 1021 char *header, *request;
1033 char *oauth; 1022 char *oauth;
1034 const char *a_key = NULL; 1023 const char *a_key = NULL;
1035 const char *a_sec = NULL; 1024 const char *a_sec = NULL;
1036 PurpleConversation *conv;
1037 oauth_request_t oauth_req; 1025 oauth_request_t oauth_req;
1038
1039 conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_ANY,
1040 "twitter@twitter.com",
1041 account_for_twitter); /* xxx */
1042 1026
1043 a_key = purple_prefs_get_string(OPT_AKEY_TWITTER); 1027 a_key = purple_prefs_get_string(OPT_AKEY_TWITTER);
1044 a_sec = purple_prefs_get_string(OPT_ASEC_TWITTER); 1028 a_sec = purple_prefs_get_string(OPT_ASEC_TWITTER);
1045 1029
1046 if(!a_key || !a_sec) { 1030 if(!a_key || !a_sec) {