Changeset 70 for trunk/csctapi/config.h


Ignore:
Timestamp:
05/12/09 05:25:27 (12 years ago)
Author:
rorothetroll
Message:

csctapi/io_serial.c : fix the serial port read/write wait routine to use select instead of poll

This make them compatible with Mac OS X and now oscamd works on OS X. The same code off course
still works on linux and other unix platforms. I let that code ran for 24h before commiting this code.
If you have any issue let me know and I'llr evert to poll for non compatible machines.

all the others : fix all the warning due to sign difference (mostly uchar versus char). This make the code compile

with -Werror on the more strict version of gcc (which is the case on OS X). I also noticed that in a lot of places
the code use a buffer defined as an uchar * ... and use strings functions (strnXXXX) where some memcpy/memcmp .. function
would have been preferable as we're suposedly manipulation a binary buffer. Anyway I fixed all of them and it now compile
without any warning or error on linux and OS X (and also probably on all the other unices but we will have to try before
adding -Werror on the other platform).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/csctapi/config.h

    r21 r70  
    66/* Debug CT-API */
    77/* #undef DEBUG_CTAPI */
    8 //#define DEBUG_CTAPI 1
     8// #define DEBUG_CTAPI 1
    99
    1010/* Debug Integrated Circuit Card */
    1111/* #undef DEBUG_ICC */
    12 //#define DEBUG_ICC 1
     12// #define DEBUG_ICC 1
    1313
    1414/* Debug Interface Device */
     
    2222/* Debug Input/Output */
    2323/* #undef DEBUG_IO */
    24 //#define DEBUG_IO 1
     24// #define DEBUG_IO 1
    2525
    2626/* Debug Protocol */
Note: See TracChangeset for help on using the changeset viewer.