Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8d8fc12 authored by Neil Fuller's avatar Neil Fuller
Browse files

Track change of type from short -> int

Remove (now) unnecessary cast: PacketSocketAddress
uses ints.

Bug: 124232146
Bug: 135660232
Test: build only
Change-Id: Ifa99e0d2e970f1b8f605afe8a394c4f575bc6eca
parent 6ae89f2f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public final class SocketUtils {
    @NonNull
    public static SocketAddress makePacketSocketAddress(int protocol, int ifIndex) {
        return new PacketSocketAddress(
                (short) protocol /* sll_protocol */,
                protocol /* sll_protocol */,
                ifIndex /* sll_ifindex */,
                null /* sll_addr */);
    }
@@ -81,7 +81,7 @@ public final class SocketUtils {
    @NonNull
    public static SocketAddress makePacketSocketAddress(int ifIndex, @NonNull byte[] hwAddr) {
        return new PacketSocketAddress(
                (short) 0 /* sll_protocol */,
                0 /* sll_protocol */,
                ifIndex /* sll_ifindex */,
                hwAddr /* sll_addr */);
    }