tipc endianness annotations
Subsystems (3)
PATCH 1/1 tipc endianness annotations
Signed-off-by Al Viro <[email protected]>
--- net/tipc/msg.h | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-)
net/tipc/msg.h +3 -4
@@ -70,10 +70,9 @@ static inline void msg_set_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask, u32 val) { val = (val & mask) << pos; - val =htonl (val); - mask =htonl (mask << pos); - m->hdr[w] &= ~mask; - m->hdr[w] |= val; + mask = mask << pos; + m->hdr[w] &= ~htonl (mask); + m->hdr[w] |=htonl (val); }/*
Signature · 1 line
1.5.3.GIT
From: Al Viro <[email protected]>
Date: Sun, 27 Apr 2008 06:40:21 +0100
Quoted 2 lines
Signed-off-by Al Viro <[email protected]>
Applied, thanks Al.
From: Al Viro <[email protected]>
Date: Sun, 27 Apr 2008 06:40:21 +0100
Quoted 2 lines
Signed-off-by Al Viro <[email protected]>
Applied, thanks Al.