Message ID | 1226106727.11596.59.camel@brick |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Harvey Harrison <harvey.harrison@gmail.com> Date: Fri, 07 Nov 2008 17:12:07 -0800 > Use htonl rather than ntohl on a u32. > net/tipc/name_table.c:557:2: warning: cast to restricted __be32 > > Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Applied thanks! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c index cd72e22..acab41a 100644 --- a/net/tipc/name_table.c +++ b/net/tipc/name_table.c @@ -555,7 +555,7 @@ static struct name_seq *nametbl_find_seq(u32 type) struct name_seq *ns; dbg("find_seq %u,(%u,0x%x) table = %p, hash[type] = %u\n", - type, ntohl(type), type, table.types, hash(type)); + type, htonl(type), type, table.types, hash(type)); seq_head = &table.types[hash(type)]; hlist_for_each_entry(ns, seq_node, seq_head, ns_list) {
Use htonl rather than ntohl on a u32. net/tipc/name_table.c:557:2: warning: cast to restricted __be32 Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> --- net/tipc/name_table.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)