Changeset 2396


Ignore:
Timestamp:
Jul 18, 2007, 6:09:03 PM (15 years ago)
Author:
joshe
Message:

Replace nice readable bitshifts with ugly hex constants
to avoid the compiler warning about our weird error codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r2388 r2396  
    7878/* I/O errors */
    7979#define TR_ERROR_IO_MASK            0x000000FF
    80 #define TR_ERROR_IO_PARENT          ((1<<31) | (1<<0))
    81 #define TR_ERROR_IO_PERMISSIONS     ((1<<31) | (1<<1))
    82 #define TR_ERROR_IO_SPACE           ((1<<31) | (1<<2))
    83 #define TR_ERROR_IO_FILE_TOO_BIG    ((1<<31) | (1<<3))
    84 #define TR_ERROR_IO_OPEN_FILES      ((1<<31) | (1<<4))
    85 #define TR_ERROR_IO_DUP_DOWNLOAD    ((1<<31) | (1<<5))
    86 #define TR_ERROR_IO_OTHER           ((1<<31) | (1<<6))
     80#define TR_ERROR_IO_PARENT          0x80000001
     81#define TR_ERROR_IO_PERMISSIONS     0x80000002
     82#define TR_ERROR_IO_SPACE           0x80000004
     83#define TR_ERROR_IO_FILE_TOO_BIG    0x80000008
     84#define TR_ERROR_IO_OPEN_FILES      0x80000010
     85#define TR_ERROR_IO_DUP_DOWNLOAD    0x80000020
     86#define TR_ERROR_IO_OTHER           0x80000040
    8787/* Misc */
    8888#define TR_ERROR_TC_MASK            0x00000F00
Note: See TracChangeset for help on using the changeset viewer.