Changeset 14189


Ignore:
Timestamp:
Sep 8, 2013, 5:29:25 PM (8 years ago)
Author:
jordan
Message:

correct function pointer type correctness. mikedld

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r14187 r14189  
    408408    int tracker_count;
    409409
    410     tr_tracker_callback * callback;
     410    tr_tracker_callback callback;
    411411    void * callbackData;
    412412}
     
    482482            event.tracker = tier->currentTracker->announce;
    483483
    484         tiers->callback (tier->tor, &event, tiers->callbackData);
     484        (*tiers->callback) (tier->tor, &event, tiers->callbackData);
    485485    }
    486486}
     
    534534        dbgmsg (tier, "got %d peers; seed prob %d", n, (int)e.seedProbability);
    535535
    536         tier->tor->tiers->callback (tier->tor, &e, NULL);
     536        (*tier->tor->tiers->callback) (tier->tor, &e, NULL);
    537537    }
    538538}
     
    692692tr_torrent_tiers *
    693693tr_announcerAddTorrent (tr_torrent           * tor,
    694                         tr_tracker_callback  * callback,
     694                        tr_tracker_callback    callback,
    695695                        void                 * callbackData)
    696696{
     
    12011201announce_request_delegate (tr_announcer               * announcer,
    12021202                           tr_announce_request        * request,
    1203                            tr_announce_response_func  * callback,
     1203                           tr_announce_response_func    callback,
    12041204                           void                       * callback_data)
    12051205{
     
    13981398scrape_request_delegate (tr_announcer             * announcer,
    13991399                         const tr_scrape_request  * request,
    1400                          tr_scrape_response_func  * callback,
     1400                         tr_scrape_response_func    callback,
    14011401                         void                     * callback_data)
    14021402{
  • trunk/libtransmission/peer-msgs.c

    r14187 r14189  
    224224  tr_torrent *           torrent;
    225225
    226   tr_peer_callback      * callback;
     226  tr_peer_callback        callback;
    227227  void                  * callbackData;
    228228
     
    480480{
    481481  if (msgs->callback != NULL)
    482     msgs->callback (&msgs->peer, e, msgs->callbackData);
     482    (*msgs->callback) (&msgs->peer, e, msgs->callbackData);
    483483}
    484484
     
    26062606tr_peerMsgsNew (struct tr_torrent    * torrent,
    26072607                struct tr_peerIo     * io,
    2608                 tr_peer_callback     * callback,
     2608                tr_peer_callback       callback,
    26092609                void                 * callbackData)
    26102610{
Note: See TracChangeset for help on using the changeset viewer.