Ignore:
Timestamp:
Jun 15, 2008 2:28:14 PM (6 years ago)
Author:
sam
Message:
  • Remove htons() and htonl() from kernel mode: we use our custom hton16() and hton32() implementations everywhere instead, except in cacaserver which requires <arpa/inet.h> stuff anyway.
File:
1 edited

Legend:

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

    r2299 r2398  
    437437static int printf_u32(char const *fmt, uint32_t i) 
    438438{ 
    439     uint32_t ni = htonl(i); 
     439    uint32_t ni = hton32(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 = htons(i); 
     445    uint16_t ni = hton16(i); 
    446446    return printf_hex(fmt, (uint8_t *)&ni, 2); 
    447447} 
Note: See TracChangeset for help on using the changeset viewer.