Changeset 7ceb6b2


Ignore:
Timestamp:
2011-06-11T23:59:00Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
52a735e
Parents:
14df98f
Message:

Use sscanf, not strtoull. G_GUINT64_FORMAT really makes format strings look
so much better.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r14df98f r7ceb6b2  
    517517                    (tud = bu->data) && tud->last_id) {
    518518                        id = tud->last_id;
    519                 } else if ((id = g_ascii_strtoull(cmd[1], NULL, 10)) &&
    520                            (id < TWITTER_LOG_LENGTH) && td->log) {
     519                } else if (sscanf(cmd[1], "%" G_GUINT64_FORMAT, &id) == 1 &&
     520                           (id < TWITTER_LOG_LENGTH) && td->log) {
    521521                        bu = td->log[id].bu;
    522522                        if (g_slist_find(ic->bee->users, bu))
Note: See TracChangeset for help on using the changeset viewer.