Ignore:
Timestamp:
Apr 24, 2006, 11:09:06 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed htons/htonl to hton16/hton32 to avoid useless conflicts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/tools/makefont.c

    r861 r865  
    273273static int printf_u32(char const *fmt, uint32_t i)
    274274{
    275     uint32_t ni = htonl(i);
     275    uint32_t ni = hton32(i);
    276276    return printf_hex(fmt, (uint8_t *)&ni, 4);
    277277}
     
    279279static int printf_u16(char const *fmt, uint16_t i)
    280280{
    281     uint16_t ni = htons(i);
     281    uint16_t ni = hton16(i);
    282282    return printf_hex(fmt, (uint8_t *)&ni, 2);
    283283}
Note: See TracChangeset for help on using the changeset viewer.