diff options
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r-- | net/tipc/msg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 68b65ef3e74b..92c4c4fd7b3f 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
@@ -174,7 +174,7 @@ static inline u32 msg_hdr_sz(struct tipc_msg *m) | |||
174 | return msg_bits(m, 0, 21, 0xf) << 2; | 174 | return msg_bits(m, 0, 21, 0xf) << 2; |
175 | } | 175 | } |
176 | 176 | ||
177 | static inline void msg_set_hdr_sz(struct tipc_msg *m,u32 n) | 177 | static inline void msg_set_hdr_sz(struct tipc_msg *m, u32 n) |
178 | { | 178 | { |
179 | msg_set_bits(m, 0, 21, 0xf, n>>2); | 179 | msg_set_bits(m, 0, 21, 0xf, n>>2); |
180 | } | 180 | } |
@@ -425,7 +425,7 @@ static inline u32 msg_routed(struct tipc_msg *m) | |||
425 | { | 425 | { |
426 | if (likely(msg_short(m))) | 426 | if (likely(msg_short(m))) |
427 | return 0; | 427 | return 0; |
428 | return(msg_destnode(m) ^ msg_orignode(m)) >> 11; | 428 | return (msg_destnode(m) ^ msg_orignode(m)) >> 11; |
429 | } | 429 | } |
430 | 430 | ||
431 | static inline u32 msg_nametype(struct tipc_msg *m) | 431 | static inline u32 msg_nametype(struct tipc_msg *m) |
@@ -863,7 +863,7 @@ void tipc_msg_init(struct tipc_msg *m, u32 user, u32 type, | |||
863 | int tipc_msg_calc_data_size(struct iovec const *msg_sect, u32 num_sect); | 863 | int tipc_msg_calc_data_size(struct iovec const *msg_sect, u32 num_sect); |
864 | int tipc_msg_build(struct tipc_msg *hdr, | 864 | int tipc_msg_build(struct tipc_msg *hdr, |
865 | struct iovec const *msg_sect, u32 num_sect, | 865 | struct iovec const *msg_sect, u32 num_sect, |
866 | int max_size, int usrmem, struct sk_buff** buf); | 866 | int max_size, int usrmem, struct sk_buff **buf); |
867 | 867 | ||
868 | static inline void msg_set_media_addr(struct tipc_msg *m, struct tipc_media_addr *a) | 868 | static inline void msg_set_media_addr(struct tipc_msg *m, struct tipc_media_addr *a) |
869 | { | 869 | { |
@@ -872,7 +872,7 @@ static inline void msg_set_media_addr(struct tipc_msg *m, struct tipc_media_addr | |||
872 | 872 | ||
873 | static inline void msg_get_media_addr(struct tipc_msg *m, struct tipc_media_addr *a) | 873 | static inline void msg_get_media_addr(struct tipc_msg *m, struct tipc_media_addr *a) |
874 | { | 874 | { |
875 | memcpy(a, &((int*)m)[5], sizeof(*a)); | 875 | memcpy(a, &((int *)m)[5], sizeof(*a)); |
876 | } | 876 | } |
877 | 877 | ||
878 | #endif | 878 | #endif |