aboutsummaryrefslogtreecommitdiffstats
path: root/package/libnl-tiny/src/include/netlink/handlers.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-26 11:33:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-01-26 11:33:38 +0000
commit9a37eaeacf30cceefd56aa53d80a6b7f3fe26503 (patch)
treea4cb5fe66248e8ae017d313bba75a876c93e1c26 /package/libnl-tiny/src/include/netlink/handlers.h
parent516dcae1c7643d736e71d240790370cb140a8383 (diff)
downloadupstream-9a37eaeacf30cceefd56aa53d80a6b7f3fe26503.tar.gz
upstream-9a37eaeacf30cceefd56aa53d80a6b7f3fe26503.tar.bz2
upstream-9a37eaeacf30cceefd56aa53d80a6b7f3fe26503.zip
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.h2
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 5c62368a85..7fb53b4eee 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;
}