ndppd: fix compilation with modern gcc
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)
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>

No differences found