- Timestamp:
- 2015-01-16T19:50:24Z (10 years ago)
- Branches:
- master
- Children:
- 434ffa2
- Parents:
- 4f161e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
r4f161e3 r85c3004 234 234 void twitter_get_friends_ids(struct im_connection *ic, gint64 next_cursor) 235 235 { 236 // Primitive, but hey! It works... 236 // Primitive, but hey! It works... 237 237 char *args[2]; 238 238 args[0] = "cursor"; 239 args[1] = g_strdup_printf("% lld", (long long)next_cursor);239 args[1] = g_strdup_printf("%" G_GINT64_FORMAT, next_cursor); 240 240 twitter_http(ic, TWITTER_FRIENDS_IDS_URL, twitter_http_get_friends_ids, ic, 0, args, 2); 241 241 … … 1002 1002 char *args[6]; 1003 1003 args[0] = "cursor"; 1004 args[1] = g_strdup_printf("% lld", (long long)next_cursor);1004 args[1] = g_strdup_printf("%" G_GINT64_FORMAT, next_cursor); 1005 1005 args[2] = "include_entities"; 1006 1006 args[3] = "true"; … … 1038 1038 char *args[6]; 1039 1039 args[0] = "cursor"; 1040 args[1] = g_strdup_printf("% lld", (long long)next_cursor);1040 args[1] = g_strdup_printf("%" G_GINT64_FORMAT, next_cursor); 1041 1041 args[2] = "include_entities"; 1042 1042 args[3] = "true"; 1043 1043 if (td->timeline_id) { 1044 1044 args[4] = "since_id"; 1045 args[5] = g_strdup_printf("% llu", (long long unsigned int)td->timeline_id);1045 args[5] = g_strdup_printf("%" G_GUINT64_FORMAT, td->timeline_id); 1046 1046 } else { 1047 1047 args[4] = "count"; … … 1172 1172 "status", msg, 1173 1173 "in_reply_to_status_id", 1174 g_strdup_printf("% llu", (unsigned long long)in_reply_to)1174 g_strdup_printf("%" G_GUINT64_FORMAT, in_reply_to) 1175 1175 }; 1176 1176 twitter_http(ic, TWITTER_STATUS_UPDATE_URL, twitter_http_post, ic, 1, … … 1206 1206 { 1207 1207 char *url; 1208 url = g_strdup_printf("%s% llu%s", TWITTER_STATUS_DESTROY_URL,1209 (unsigned long long)id, ".json");1208 url = g_strdup_printf("%s%" G_GUINT64_FORMAT "%s", 1209 TWITTER_STATUS_DESTROY_URL, id, ".json"); 1210 1210 twitter_http_f(ic, url, twitter_http_post, ic, 1, NULL, 0, 1211 1211 TWITTER_HTTP_USER_ACK); … … 1216 1216 { 1217 1217 char *url; 1218 url = g_strdup_printf("%s% llu%s", TWITTER_STATUS_RETWEET_URL,1219 (unsigned long long)id, ".json");1218 url = g_strdup_printf("%s%" G_GUINT64_FORMAT "%s", 1219 TWITTER_STATUS_RETWEET_URL, id, ".json"); 1220 1220 twitter_http_f(ic, url, twitter_http_post, ic, 1, NULL, 0, 1221 1221 TWITTER_HTTP_USER_ACK); … … 1246 1246 NULL, 1247 1247 }; 1248 args[1] = g_strdup_printf("% llu", (unsigned long long)id);1248 args[1] = g_strdup_printf("%" G_GUINT64_FORMAT, id); 1249 1249 twitter_http_f(ic, TWITTER_FAVORITE_CREATE_URL, twitter_http_post, 1250 1250 ic, 1, args, 2, TWITTER_HTTP_USER_ACK);
Note: See TracChangeset
for help on using the changeset viewer.