Ignore:
Timestamp:
Jun 15, 2008, 3:49:57 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • makefont is only a system tool: use htons/htonl instead of hton16/hton32.
File:
1 edited

Legend:

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

    r2398 r2405  
    437437static int printf_u32(char const *fmt, uint32_t i)
    438438{
    439     uint32_t ni = hton32(i);
     439    uint32_t ni = htonl(i);
    440440    return printf_hex(fmt, (uint8_t *)&ni, 4);
    441441}
     
    443443static int printf_u16(char const *fmt, uint16_t i)
    444444{
    445     uint16_t ni = hton16(i);
     445    uint16_t ni = htons(i);
    446446    return printf_hex(fmt, (uint8_t *)&ni, 2);
    447447}
Note: See TracChangeset for help on using the changeset viewer.