Ignore:
Timestamp:
Apr 19, 2008, 4:07:50 PM (12 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.
Location:
libcaca/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaplay.c

    r2299 r2300  
    3232    cucul_canvas_t *cv, *app;
    3333    caca_display_t *dp;
    34     unsigned char *buf = NULL;
     34    uint8_t *buf = NULL;
    3535    long int bytes = 0, total = 0;
    3636    int fd;
  • libcaca/trunk/src/cacaserver.c

    r2299 r2300  
    150150    memcpy(server->prefix, INIT_PREFIX, sizeof(INIT_PREFIX));
    151151    tmp = strstr(server->prefix, "____");
    152     tmp[0] = (unsigned char) (server->width & 0xff00) >> 8;
    153     tmp[1] = (unsigned char) server->width & 0xff;
    154     tmp[2] = (unsigned char) (server->height & 0xff00) >> 8;
    155     tmp[3] = (unsigned char) server->height & 0xff;
     152    tmp[0] = (uint8_t) (server->width & 0xff00) >> 8;
     153    tmp[1] = (uint8_t) server->width & 0xff;
     154    tmp[2] = (uint8_t) (server->height & 0xff00) >> 8;
     155    tmp[3] = (uint8_t) server->height & 0xff;
    156156
    157157    if((server->sockfd = socket(PF_INET, SOCK_STREAM, 0)) == -1)
  • 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.