projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53d42f5
)
[IPX]: Correct return type of ipx_map_frame_type().
author
Alexey Dobriyan
<adobriyan@gmail.com>
Tue, 16 May 2006 22:17:49 +0000
(15:17 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 16 May 2006 22:17:49 +0000
(15:17 -0700)
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>
net/ipx/af_ipx.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipx/af_ipx.c
b/net/ipx/af_ipx.c
index 2dbf134d5266068e633896e909a71d2f5572c8b4..811d998725bc6728bec208ad90ef81157f8235a0 100644
(file)
--- 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;