diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-03-07 00:21:31 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:24:01 -0400 |
commit | 02ea4923b4997d7e1310c027081f46d584b9d714 (patch) | |
tree | 804263fd5c5b4add5f4004d0eac0e9ce5583625a /net | |
parent | b6d9bcb0697e60d5424e2f395fe950f0e22f4418 (diff) |
[NET] TIPC: Use htons() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/eth_media.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/eth_media.c b/net/tipc/eth_media.c index 9be4839e32c5..f71ba9db611e 100644 --- a/net/tipc/eth_media.c +++ b/net/tipc/eth_media.c | |||
@@ -140,7 +140,7 @@ static int enable_bearer(struct tipc_bearer *tb_ptr) | |||
140 | return -EDQUOT; | 140 | return -EDQUOT; |
141 | if (!eb_ptr->dev) { | 141 | if (!eb_ptr->dev) { |
142 | eb_ptr->dev = dev; | 142 | eb_ptr->dev = dev; |
143 | eb_ptr->tipc_packet_type.type = __constant_htons(ETH_P_TIPC); | 143 | eb_ptr->tipc_packet_type.type = htons(ETH_P_TIPC); |
144 | eb_ptr->tipc_packet_type.dev = dev; | 144 | eb_ptr->tipc_packet_type.dev = dev; |
145 | eb_ptr->tipc_packet_type.func = recv_msg; | 145 | eb_ptr->tipc_packet_type.func = recv_msg; |
146 | eb_ptr->tipc_packet_type.af_packet_priv = eb_ptr; | 146 | eb_ptr->tipc_packet_type.af_packet_priv = eb_ptr; |