]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Linux: cast away a compile warning
authorRoy Marples <roy@marples.name>
Wed, 4 Sep 2019 10:25:12 +0000 (11:25 +0100)
committerRoy Marples <roy@marples.name>
Wed, 4 Sep 2019 10:25:12 +0000 (11:25 +0100)
src/if-linux.c

index 243661f21d60f3ad5f6ab6dc439730a6ae587c0d..e569596f597015b62788b00eb0a056b43d0afe31 100644 (file)
@@ -1464,7 +1464,7 @@ bpf_attach(int s, void *filter, unsigned int filter_len)
 {
        struct sock_fprog pf = {
                .filter = filter,
-               .len = filter_len,
+               .len = (unsigned short)filter_len,
        };
 
        /* Install the filter. */