use bswap_X() instead of b_swapX()

byteswap.h defined interface is bswap_X() not b_swapX()
This commit is contained in:
Dan Horák 2012-11-05 09:37:11 +01:00 committed by Ryan McCabe
parent 7231adafcb
commit c3d398645d

View File

@ -90,9 +90,9 @@ typedef struct __attribute__ ((packed)) _fence_req {
#if __BYTE_ORDER == __BIG_ENDIAN #if __BYTE_ORDER == __BIG_ENDIAN
#define swab_fence_req_t(req) \ #define swab_fence_req_t(req) \
do { \ do { \
(req)->seqno = b_swap32((req)->seqno); \ (req)->seqno = bswap_32((req)->seqno); \
(req)->family = b_swap32((req)->family); \ (req)->family = bswap_32((req)->family); \
(req)->port = b_swap32((req)->port); \ (req)->port = bswap_32((req)->port); \
} while(0) } while(0)
#else #else
#define swab_fence_req_t(req) #define swab_fence_req_t(req)
@ -124,8 +124,8 @@ typedef struct __attribute__((packed)) _serial_fence_req {
#if __BYTE_ORDER == __BIG_ENDIAN #if __BYTE_ORDER == __BIG_ENDIAN
#define swab_serial_req_t(req) \ #define swab_serial_req_t(req) \
do { \ do { \
(req)->magic = b_swap32((req)->magic); \ (req)->magic = bswap_32((req)->magic); \
(req)->seqno = b_swap32((req)->seqno); \ (req)->seqno = bswap_32((req)->seqno); \
} while(0) } while(0)
#else #else
#define swab_serial_req_t(req) #define swab_serial_req_t(req)
@ -140,7 +140,7 @@ typedef struct __attribute__((packed)) _serial_fense_resp {
#if __BYTE_ORDER == __BIG_ENDIAN #if __BYTE_ORDER == __BIG_ENDIAN
#define swab_serial_resp_t(req) \ #define swab_serial_resp_t(req) \
do { \ do { \
(req)->magic = b_swap32((req)->magic); \ (req)->magic = bswap_32((req)->magic); \
} while(0) } while(0)
#else #else
#define swab_serial_resp_t(req) #define swab_serial_resp_t(req)