Skip to content

Commit

Permalink
[IPX]: Correct return type of ipx_map_frame_type().
Browse files Browse the repository at this point in the history
Casting BE16 to int and back may or may not work. Correct, to be sure.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed May 16, 2006
1 parent 53d42f5 commit 4ac396c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipx/af_ipx.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,9 +944,9 @@ static int ipxitf_create_internal(struct ipx_interface_definition *idef)
return rc;
}

static int ipx_map_frame_type(unsigned char type)
static __be16 ipx_map_frame_type(unsigned char type)
{
int rc = 0;
__be16 rc = 0;

switch (type) {
case IPX_FRAME_ETHERII: rc = htons(ETH_P_IPX); break;
Expand Down

0 comments on commit 4ac396c

Please sign in to comment.