Changeset 7a80925 for protocols


Ignore:
Timestamp:
2014-02-13T08:48:37Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6ae1056
Parents:
e76cf26
Message:

Update json-parser code to git rev 11a80f389769d1f66ca7fbe64ad89c82d3ba4ba9.
Few BitlBee-specific diffs now. Annoyingly need to link to libm now for the
use of the function pow() since the lib now does its own number parsing...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.c

    re76cf26 r7a80925  
    164164
    165165        if (req->body_size > 0) {
    166                 root = json_parse(req->reply_body);
     166                root = json_parse(req->reply_body, req->body_size);
    167167                err = json_o_get(root, "errors");
    168168                if (err && err->type == json_array && (err = err->u.array.values[0]) &&
     
    220220        }
    221221
    222         if ((ret = json_parse(req->reply_body)) == NULL) {
     222        if ((ret = json_parse(req->reply_body, req->body_size)) == NULL) {
    223223                imcb_error(ic, "Could not retrieve %s: %s",
    224224                           path, "XML parse error");
     
    263263               
    264264                txl->list = g_slist_prepend(txl->list,
    265                         g_strdup_printf("%lld", c->u.array.values[i]->u.integer));
     265                        g_strdup_printf("%" PRIu64, c->u.array.values[i]->u.integer));
    266266        }
    267267       
     
    773773                req->reply_body[len] = '\0';
    774774               
    775                 if ((parsed = json_parse(req->reply_body))) {
     775                if ((parsed = json_parse(req->reply_body, req->body_size))) {
    776776                        twitter_stream_handle_object(ic, parsed);
    777777                }
Note: See TracChangeset for help on using the changeset viewer.