Changeset 13


Ignore:
Timestamp:
May 26, 2008, 5:20:24 PM (16 years ago)
Author:
guillaume
Message:

Fix compilation in some case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tt-loader/main.c

    r12 r13  
    7979#endif
    8080
    81 static inline unsigned roundup (unsigned v, unsigned d)
     81static inline unsigned round_up (unsigned v, unsigned d)
    8282{
    8383        v+= --d;
     
    198198        }
    199199       
    200         toread.content= malloc (roundup (toread.size, 4));
     200        toread.content= malloc (round_up (toread.size, 4));
    201201        if (toread.content == NULL)
    202202        {
     
    763763                                                                        free((void *)current.content);
    764764                                                                current.size = size ;
    765                                                                 p = malloc (roundup (size, 4));
     765                                                                p = malloc (round_up (size, 4));
    766766                                                                if ( p == NULL)
    767767                                                                {
    768                                                                         log2("Out of memory requesting %d bytes\n", roundup (size, 4));
     768                                                                        log2("Out of memory requesting %d bytes\n", round_up (size, 4));
    769769                                                                        loop=0 ;
    770770                                                                        break ;
     
    958958        }
    959959       
    960         size= roundup (size, 4);
     960        size= round_up (size, 4);
    961961       
    962962        p[0x21]= cpu_to_le32 (size - 0x40);
     
    969969        p[0x12]= cpu_to_le32 (size);
    970970       
    971         buffsize= 128 + roundup (size, 4);
     971        buffsize= 128 + round_up (size, 4);
    972972       
    973973        cmdfile = readfile(argv[ARG_CMDFILE]);
Note: See TracChangeset for help on using the changeset viewer.