[PATCH] ipx: correct return type of ipx_map_frame_type flat view STALE7464d From: Alexey Dobriyan <hidden> Date: 2006-05-16 18:50:58 Casting BE16 to int and back may or may not work. Correct, to be sure. Signed-off-by: Alexey Dobriyan <redacted> --- --- a/net/ipx/af_ipx.c +++ b/net/ipx/af_ipx.c@@ -944,9 +944,9 @@ out: 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;
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help