Changeset 7541


Ignore:
Timestamp:
Dec 30, 2008, 2:43:51 AM (12 years ago)
Author:
charles
Message:

(trunk libT) minor cleanup: use symbolic name instead of magic numbers; use tr_bool instead of int

Location:
trunk/libtransmission
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.c

    r7531 r7541  
    9393    int                socket;
    9494
    95     uint8_t            peerId[20];
     95    uint8_t            peerId[SHA_DIGEST_LENGTH];
    9696    time_t             timeCreated;
    9797
  • trunk/libtransmission/tracker.c

    r7535 r7541  
    909909               tr_tracker * tracker )
    910910{
    911     struct tr_tracker_request * req;
    912 
    913     req = createScrape( session, tracker );
     911    struct tr_tracker_request * req = createScrape( session, tracker );
    914912    tr_runInEventThread( session, invokeRequest, req );
    915913}
     
    920918                int          reqtype )
    921919{
    922     struct tr_tracker_request * req;
    923 
    924     req = createRequest( session, tracker, reqtype );
     920    struct tr_tracker_request * req = createRequest( session, tracker, reqtype );
    925921    tr_runInEventThread( session, invokeRequest, req );
    926922}
  • trunk/libtransmission/trevent.c

    r7476 r7541  
    283283**/
    284284
    285 int
     285tr_bool
    286286tr_amInEventThread( tr_session * session )
    287287{
  • trunk/libtransmission/trevent.h

    r7404 r7541  
    4949
    5050
    51 int       tr_amInEventThread( tr_session * );
     51tr_bool   tr_amInEventThread( tr_session * );
    5252
    5353void      tr_runInEventThread( tr_session * session,
Note: See TracChangeset for help on using the changeset viewer.