Ignore:
Timestamp:
Apr 23, 2008, 11:24:34 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Switch a few unsigned int variables to size_t where appropriate.
  • Synchronise parameter types in the C++ bindings with the C API.
Location:
libcaca/trunk/src
Files:
2 edited

Legend:

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

    r2300 r2313  
    113113    cucul_canvas_t *canvas;
    114114    void *buffer;
    115     unsigned long int buflen;
     115    size_t buflen;
    116116
    117117    int client_count;
     
    223223        for(;;)
    224224        {
    225             long int needed;
    226             ssize_t wanted;
     225            ssize_t needed, wanted;
    227226
    228227            needed = cucul_import_memory(server->canvas, server->input,
     
    244243            server->read += wanted;
    245244        }
    246            
     245
    247246        /* Free the previous export buffer, if any */
    248247        if(server->buffer)
  • libcaca/trunk/src/img2txt.c

    r2299 r2313  
    9696    cucul_canvas_t *cv;
    9797    void *export;
    98     unsigned long int len;
     98    size_t len;
    9999    struct image *i;
    100100    unsigned int cols = 0, lines = 0, font_width = 6, font_height = 10;
Note: See TracChangeset for help on using the changeset viewer.