summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-12-06 14:22:11 (GMT)
committerThomas Haller <thaller@redhat.com>2016-12-06 14:42:25 (GMT)
commitfb32f6e6c0112364ee1c605c62be91a370002e6b (patch)
treee68d69f050b0a2486b04fa19205f76c04ea5b397 /lib
parent44880b68d847894cc71ec0bc5f774c2ccd88a0bf (diff)
downloadlibnl-fb32f6e6c0112364ee1c605c62be91a370002e6b.zip
libnl-fb32f6e6c0112364ee1c605c62be91a370002e6b.tar.gz
libnl-fb32f6e6c0112364ee1c605c62be91a370002e6b.tar.bz2
link: fix documentation for rtnl_link_get_carrier_changes
The doxygen comment of rtnl_link_get_carrier_changes still describes the initially implemented behaviour and was not updated, when the signature was changed as part of #119. Adjust it accordingly. Fixes: 0c4b2ea6d17b ("link: add support for IFLA_CARRIER_CHANGES") Signed-off-by: Tobias Klauser <tklauser@distanz.ch> https://github.com/thom311/libnl/pull/120
Diffstat (limited to 'lib')
-rw-r--r--lib/route/link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/route/link.c b/lib/route/link.c
index f842810..b26f871 100644
--- a/lib/route/link.c
+++ b/lib/route/link.c
@@ -2327,8 +2327,9 @@ uint8_t rtnl_link_get_carrier(struct rtnl_link *link)
/**
* Return carrier on/off changes of link object
* @arg link Link object
+ * @arg carrier_changes Pointer to store number of carrier changes
*
- * @return Carrier changes.
+ * @return 0 on success, negative error number otherwise
*/
int rtnl_link_get_carrier_changes(struct rtnl_link *link, uint32_t *carrier_changes)
{