* [PATCH] ipx: correct return type of ipx_map_frame_type
@ 2006-05-16 18:49 Alexey Dobriyan
2006-05-16 22:18 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2006-05-16 18:49 UTC (permalink / raw)
To: Andrew Morton; +Cc: Arnaldo Carvalho de Melo, netdev
Casting BE16 to int and back may or may not work. Correct, to be sure.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
--- 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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-16 22:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-16 18:49 [PATCH] ipx: correct return type of ipx_map_frame_type Alexey Dobriyan
2006-05-16 22:18 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox