From 9a1f977e39d8e9fcb6a9cb2a612f4743e802221d Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 10 Nov 2023 15:47:08 +0100 Subject: Kernel Style: Change uint*_t -> u* --- kernel/network/bytes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kernel/network/bytes.c') diff --git a/kernel/network/bytes.c b/kernel/network/bytes.c index 94afa73..f502caf 100644 --- a/kernel/network/bytes.c +++ b/kernel/network/bytes.c @@ -1,10 +1,10 @@ #include -uint16_t ntohs(uint16_t net) { return (net >> 8) | (net << 8); } +u16 ntohs(u16 net) { return (net >> 8) | (net << 8); } -uint16_t htons(uint16_t net) { return (net >> 8) | (net << 8); } +u16 htons(u16 net) { return (net >> 8) | (net << 8); } -uint32_t htonl(uint32_t net) { +u32 htonl(u32 net) { return (((net & 0x000000FF) << 24) | ((net & 0x0000FF00) << 8) | ((net & 0x00FF0000) >> 8) | ((net & 0xFF000000) >> 24)); } -- cgit v1.2.3