summaryrefslogtreecommitdiffstats
path: root/sys/sys/mchain.h
diff options
context:
space:
mode:
authorbmilekic <bmilekic@FreeBSD.org>2003-02-21 16:24:49 +0000
committerbmilekic <bmilekic@FreeBSD.org>2003-02-21 16:24:49 +0000
commit210114da25a49b17fd6118a793d143138030e29b (patch)
tree099e4d3b9ffaaba436f1e64e1f9fd9d7f9d04f96 /sys/sys/mchain.h
parent9aa946589d32570b5f9072729164e74111ace98a (diff)
downloadFreeBSD-src-210114da25a49b17fd6118a793d143138030e29b.zip
FreeBSD-src-210114da25a49b17fd6118a793d143138030e29b.tar.gz
Some style fixes.
Submitted by: Hiten Pandya <hiten@unixdaemons.com>
Diffstat (limited to 'sys/sys/mchain.h')
-rw-r--r--sys/sys/mchain.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/sys/mchain.h b/sys/sys/mchain.h
index 4fbdfac..7e31e44 100644
--- a/sys/sys/mchain.h
+++ b/sys/sys/mchain.h
@@ -42,17 +42,17 @@
*/
#if (BYTE_ORDER == LITTLE_ENDIAN)
-#define htoles(x) ((u_int16_t)(x))
-#define letohs(x) ((u_int16_t)(x))
+#define htoles(x) ((u_int16_t)(x))
+#define letohs(x) ((u_int16_t)(x))
#define htolel(x) ((u_int32_t)(x))
#define letohl(x) ((u_int32_t)(x))
#define htoleq(x) ((int64_t)(x))
#define letohq(x) ((int64_t)(x))
-#define htobes(x) (__htons(x))
-#define betohs(x) (__ntohs(x))
-#define htobel(x) (__htonl(x))
-#define betohl(x) (__ntohl(x))
+#define htobes(x) (__htons(x))
+#define betohs(x) (__ntohs(x))
+#define htobel(x) (__htonl(x))
+#define betohl(x) (__ntohl(x))
static __inline int64_t
htobeq(int64_t x)
@@ -73,8 +73,8 @@ betohq(int64_t x)
#error "Macros for Big-Endians are incomplete"
/*
-#define htoles(x) ((u_int16_t)(x))
-#define letohs(x) ((u_int16_t)(x))
+#define htoles(x) ((u_int16_t)(x))
+#define letohs(x) ((u_int16_t)(x))
#define htolel(x) ((u_int32_t)(x))
#define letohl(x) ((u_int32_t)(x))
*/
@@ -88,8 +88,8 @@ betohq(int64_t x)
* Type of copy for mb_{put|get}_mem()
*/
#define MB_MSYSTEM 0 /* use bcopy() */
-#define MB_MUSER 1 /* use copyin()/copyout() */
-#define MB_MINLINE 2 /* use an inline copy loop */
+#define MB_MUSER 1 /* use copyin()/copyout() */
+#define MB_MINLINE 2 /* use an inline copy loop */
#define MB_MZERO 3 /* bzero(), mb_put_mem only */
#define MB_MCUSTOM 4 /* use an user defined function */
OpenPOWER on IntegriCloud