diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-01-26 11:33:38 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-01-26 11:33:38 +0000 |
commit | b86e1f46aba4d9f348e4295ea7c652b600adfa8f (patch) | |
tree | e5945fac7a7dec1709375bd4897ba4dafd2de923 /package/libnl-tiny/src/include/netlink/handlers.h | |
parent | 5e1086da2dea492398407519d31310f5fb61880a (diff) |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25101 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 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; } |