Changeset bd64716
- Timestamp:
- 2010-06-29T23:30:05Z (14 years ago)
- Branches:
- master
- Children:
- 8203da9
- Parents:
- 64f8c425
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter_lib.c
r64f8c425 rbd64716 42 42 struct twitter_xml_list { 43 43 int type; 44 int next_cursor;44 int64_t next_cursor; 45 45 GSList *list; 46 46 gpointer data; … … 171 171 static xt_status twitter_xt_next_cursor( struct xt_node *node, struct twitter_xml_list *txl ) 172 172 { 173 // Do something with the cursor. 174 txl->next_cursor = node->text != NULL ? atoi(node->text) : -1; 173 char *end = NULL; 174 175 if( node->text ) 176 txl->next_cursor = g_ascii_strtoll( node->text, &end, 10 ); 177 if( end == NULL ) 178 txl->next_cursor = -1; 175 179 176 180 return XT_HANDLED;
Note: See TracChangeset
for help on using the changeset viewer.