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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user