From c3d398645dc9edb51573654f97558e493859584b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Mon, 5 Nov 2012 09:37:11 +0100 Subject: [PATCH] use bswap_X() instead of b_swapX() byteswap.h defined interface is bswap_X() not b_swapX() --- include/xvm.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/xvm.h b/include/xvm.h index 5b4cfe6..b02c414 100644 --- a/include/xvm.h +++ b/include/xvm.h @@ -90,9 +90,9 @@ typedef struct __attribute__ ((packed)) _fence_req { #if __BYTE_ORDER == __BIG_ENDIAN #define swab_fence_req_t(req) \ do { \ - (req)->seqno = b_swap32((req)->seqno); \ - (req)->family = b_swap32((req)->family); \ - (req)->port = b_swap32((req)->port); \ + (req)->seqno = bswap_32((req)->seqno); \ + (req)->family = bswap_32((req)->family); \ + (req)->port = bswap_32((req)->port); \ } while(0) #else #define swab_fence_req_t(req) @@ -124,8 +124,8 @@ typedef struct __attribute__((packed)) _serial_fence_req { #if __BYTE_ORDER == __BIG_ENDIAN #define swab_serial_req_t(req) \ do { \ - (req)->magic = b_swap32((req)->magic); \ - (req)->seqno = b_swap32((req)->seqno); \ + (req)->magic = bswap_32((req)->magic); \ + (req)->seqno = bswap_32((req)->seqno); \ } while(0) #else #define swab_serial_req_t(req) @@ -140,7 +140,7 @@ typedef struct __attribute__((packed)) _serial_fense_resp { #if __BYTE_ORDER == __BIG_ENDIAN #define swab_serial_resp_t(req) \ do { \ - (req)->magic = b_swap32((req)->magic); \ + (req)->magic = bswap_32((req)->magic); \ } while(0) #else #define swab_serial_resp_t(req) -- 1.7.11.7