]> err.no Git - linux-2.6/commitdiff
[IPX]: Correct return type of ipx_map_frame_type().
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 16 May 2006 22:17:49 +0000 (15:17 -0700)
committerDavid 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

index 2dbf134d5266068e633896e909a71d2f5572c8b4..811d998725bc6728bec208ad90ef81157f8235a0 100644 (file)
@@ -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;