diff options
author | Thomas Haller <thaller@redhat.com> | 2018-10-10 11:02:36 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-10-10 11:02:46 +0200 |
commit | a90256de2f97dbd6b9387e52512ef43e109e1503 (patch) | |
tree | ae36529316f7a4f2671b095b9dcdf16d33883d77 /include/netlink | |
parent | c9b28170e7199b3ba63a73c7dad7c2eacab46e72 (diff) | |
download | libnl-a90256de2f97dbd6b9387e52512ef43e109e1503.tar.gz |
route/tc: return error code from rtnl_tc_get_chain()
Our API is unfortunately not consistent about this.
However, in general, getters should aim to return an
error code whether the attribute could be retrieved.
Diffstat (limited to 'include/netlink')
-rw-r--r-- | include/netlink/route/tc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netlink/route/tc.h b/include/netlink/route/tc.h index 55b474d1..51d670ae 100644 --- a/include/netlink/route/tc.h +++ b/include/netlink/route/tc.h @@ -110,7 +110,7 @@ extern int rtnl_tc_str2handle(const char *, uint32_t *); extern int rtnl_classid_generate(const char *, uint32_t *, uint32_t); extern void rtnl_tc_set_chain(struct rtnl_tc *, uint32_t); -extern uint32_t rtnl_tc_get_chain(struct rtnl_tc *); +extern int rtnl_tc_get_chain(struct rtnl_tc *, uint32_t *); #ifdef __cplusplus } |