Ignore:
Timestamp:
Apr 19, 2008, 4:07:50 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Changed most "unsigned char" variables into "uint8_t", including in prototypes. As they are equivalent, this does not break the ABI.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/common-image.c

    r2299 r2300  
    278278static unsigned int u32fread(FILE *fp)
    279279{
    280     unsigned char buffer[4];
     280    uint8_t buffer[4];
    281281    fread(buffer, 4, 1, fp);
    282282    return ((unsigned int)buffer[3] << 24) | ((unsigned int)buffer[2] << 16)
     
    286286static unsigned int u16fread(FILE *fp)
    287287{
    288     unsigned char buffer[2];
     288    uint8_t buffer[2];
    289289    fread(buffer, 2, 1, fp);
    290290    return ((unsigned int)buffer[1] << 8) | ((unsigned int)buffer[0]);
     
    293293static unsigned int u8fread(FILE *fp)
    294294{
    295     unsigned char buffer;
     295    uint8_t buffer;
    296296    fread(&buffer, 1, 1, fp);
    297297    return (unsigned int)buffer;
Note: See TracChangeset for help on using the changeset viewer.