Changeset 6629


Ignore:
Timestamp:
Aug 22, 2008, 4:13:52 PM (13 years ago)
Author:
muks
Message:

Use stricter type for enums

Location:
trunk/libtransmission
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-common.h

    r6359 r6629  
    2121#include "publish.h"
    2222
    23 enum
     23typedef enum
    2424{
    2525    TR_ADDREQ_OK=0,
     
    2828    TR_ADDREQ_MISSING,
    2929    TR_ADDREQ_CLIENT_CHOKED
    30 };
     30} tr_addreq_t;
    3131
    3232/**
  • trunk/libtransmission/peer-mgr.c

    r6628 r6629  
    716716        for( j=0; !handled && j<peerCount; )
    717717        {
    718             const int val = tr_peerMsgsAddRequest( peers[j]->msgs, piece );
     718            const tr_addreq_t val = tr_peerMsgsAddRequest( peers[j]->msgs, piece );
    719719            switch( val )
    720720            {
  • trunk/libtransmission/peer-msgs.c

    r6626 r6629  
    867867}
    868868
    869 int
     869tr_addreq_t
    870870tr_peerMsgsAddRequest( tr_peermsgs       * msgs,
    871871                       tr_piece_index_t    piece )
  • trunk/libtransmission/peer-msgs.h

    r6101 r6629  
    4545void         tr_peerMsgsFree( tr_peermsgs* );
    4646
    47 int          tr_peerMsgsAddRequest( tr_peermsgs      * peer,
     47tr_addreq_t  tr_peerMsgsAddRequest( tr_peermsgs      * peer,
    4848                                    tr_piece_index_t   piece );
    4949
Note: See TracChangeset for help on using the changeset viewer.