diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-01-26 11:33:38 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-01-26 11:33:38 +0000 |
commit | 9a37eaeacf30cceefd56aa53d80a6b7f3fe26503 (patch) | |
tree | a4cb5fe66248e8ae017d313bba75a876c93e1c26 /package/libnl-tiny/src/include/netlink/handlers.h | |
parent | 516dcae1c7643d736e71d240790370cb140a8383 (diff) | |
download | mtk-20170518-9a37eaeacf30cceefd56aa53d80a6b7f3fe26503.zip mtk-20170518-9a37eaeacf30cceefd56aa53d80a6b7f3fe26503.tar.gz mtk-20170518-9a37eaeacf30cceefd56aa53d80a6b7f3fe26503.tar.bz2 |
libnl-tiny: Fix for c++ compatibility
g++ compiler issued some errors like "invalid conversion from void* to *struct nl_attr"
when compiling cpp file which calls libnl-tiny functions. (it's OK with gcc)
Also see https://dev.openwrt.org/ticket/7854
Patch from: kentarou matsuyama <matsuyama@thinktube.com>
SVN-Revision: 25101
Diffstat (limited to 'package/libnl-tiny/src/include/netlink/handlers.h')
-rw-r--r-- | package/libnl-tiny/src/include/netlink/handlers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/libnl-tiny/src/include/netlink/handlers.h b/package/libnl-tiny/src/include/netlink/handlers.h index 5c62368..7fb53b4 100644 --- a/package/libnl-tiny/src/include/netlink/handlers.h +++ b/package/libnl-tiny/src/include/netlink/handlers.h @@ -172,7 +172,7 @@ static inline int nl_cb_set_all(struct nl_cb *cb, enum nl_cb_kind kind, int i, err; for (i = 0; i <= NL_CB_TYPE_MAX; i++) { - err = nl_cb_set(cb, i, kind, func, arg); + err = nl_cb_set(cb,(enum nl_cb_type)i, kind, func, arg); if (err < 0) return err; } |