summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2015-03-17 16:27:24 +0900
committerLorenzo Colitti <lorenzo@google.com>2015-03-17 16:27:24 +0900
commitbf9a16e6edb7fe8e36fe2ea83efaceaa8eb538cd (patch)
tree6b239af87a7c5f3fa652cb49a17dcff231277d79
parent71f075469264b2ae9fbfae18d4601e1675f00956 (diff)
downloadlibcore-bf9a16e6edb7fe8e36fe2ea83efaceaa8eb538cd.zip
libcore-bf9a16e6edb7fe8e36fe2ea83efaceaa8eb538cd.tar.gz
libcore-bf9a16e6edb7fe8e36fe2ea83efaceaa8eb538cd.tar.bz2
Remove a superfluous cast.
Change-Id: I1b4b9d9160a66d0ce9aa2449526041d1c75d545d
-rw-r--r--luni/src/test/java/libcore/io/OsTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/luni/src/test/java/libcore/io/OsTest.java b/luni/src/test/java/libcore/io/OsTest.java
index dce08f0..e648e8a 100644
--- a/luni/src/test/java/libcore/io/OsTest.java
+++ b/luni/src/test/java/libcore/io/OsTest.java
@@ -295,12 +295,12 @@ public class OsTest extends TestCase {
public void test_PacketSocketAddress() throws Exception {
NetworkInterface lo = NetworkInterface.getByName("lo");
- FileDescriptor fd = Libcore.os.socket(AF_PACKET, SOCK_DGRAM, (short) ETH_P_IPV6);
+ FileDescriptor fd = Libcore.os.socket(AF_PACKET, SOCK_DGRAM, ETH_P_IPV6);
PacketSocketAddress addr = new PacketSocketAddress((short) ETH_P_IPV6, lo.getIndex());
Libcore.os.bind(fd, addr);
PacketSocketAddress bound = (PacketSocketAddress) Libcore.os.getsockname(fd);
- assertEquals((short) ETH_P_IPV6, bound.sll_protocol);
+ assertEquals((short) ETH_P_IPV6, bound.sll_protocol); // ETH_P_IPV6 is an int.
assertEquals(lo.getIndex(), bound.sll_ifindex);
assertEquals(ARPHRD_LOOPBACK, bound.sll_hatype);
assertEquals(0, bound.sll_pkttype);