From 321db7b450e46f31676692755c1a3fe85a0c6d0b Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 15 Jun 2008 13:49:57 +0000 Subject: [PATCH] * makefont is only a system tool: use htons/htonl instead of hton16/hton32. --- tools/makefont.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/makefont.c b/tools/makefont.c index 16ca625..2ecb9ab 100644 --- a/tools/makefont.c +++ b/tools/makefont.c @@ -436,13 +436,13 @@ static int printf_unicode(struct glyph *g) static int printf_u32(char const *fmt, uint32_t i) { - uint32_t ni = hton32(i); + uint32_t ni = htonl(i); return printf_hex(fmt, (uint8_t *)&ni, 4); } static int printf_u16(char const *fmt, uint16_t i) { - uint16_t ni = hton16(i); + uint16_t ni = htons(i); return printf_hex(fmt, (uint8_t *)&ni, 2); }