ndppd: fix compilation with modern gcc 258/head
authorJo-Philipp Wich <jo@mein.io>
Wed, 18 Jan 2017 00:57:17 +0000 (01:57 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 18 Jan 2017 00:59:20 +0000 (01:59 +0100)
commit5aa009c7e617d607611316c71268cf44dff372f1
tree4f840176871dc5498a23d70394d8627d693f721e
parenteca18c2d621c18fed127680cfae5ed953771dcc2
ndppd: fix compilation with modern gcc

Import upstream commit "f19fa4b Fix a cast so it can be compiled with gcc-6"
in order to fix building ndppd with recent gcc versions.

Fixes the following error spotted by the build bots:

    src/iface.cc: In static member function 'static ndppd::ptr<ndppd::iface> ndppd::iface::open_pfd(const string&)':
    src/iface.cc:153:5: error: narrowing conversion of '-1' from 'int' to '__u32 {aka unsigned int}' inside { } [-Wnarrowing]

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
ndppd/patches/0002-upstream-cast-fix.patch [new file with mode: 0644]