summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-03-15 08:24:32 (GMT)
committerThomas Haller <thaller@redhat.com>2022-03-15 08:25:43 (GMT)
commitd0cfecc6d7b515673afec787fb6db7d89bf02fa5 (patch)
treeb69b7529bd681235bdf59e6f23d52a134c864f81 /include
parent6a922687d36293a00f05aade095ad62181d12280 (diff)
downloadlibnl-d0cfecc6d7b515673afec787fb6db7d89bf02fa5.zip
libnl-d0cfecc6d7b515673afec787fb6db7d89bf02fa5.tar.gz
libnl-d0cfecc6d7b515673afec787fb6db7d89bf02fa5.tar.bz2
route: make argument of rtnl_link_can_set_{bittiming,data_bittiming}() const
The argument of the setters does not get modified. Make it const. This change does not break API/ABI.
Diffstat (limited to 'include')
-rw-r--r--include/netlink/route/link/can.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/netlink/route/link/can.h b/include/netlink/route/link/can.h
index 0612cbc..7df50e3 100644
--- a/include/netlink/route/link/can.h
+++ b/include/netlink/route/link/can.h
@@ -36,7 +36,7 @@ extern int rtnl_link_can_get_bt_const(struct rtnl_link *,
extern int rtnl_link_can_get_bittiming(struct rtnl_link *,
struct can_bittiming *);
extern int rtnl_link_can_set_bittiming(struct rtnl_link *,
- struct can_bittiming *);
+ const struct can_bittiming *);
extern int rtnl_link_can_get_bitrate(struct rtnl_link *, uint32_t *);
extern int rtnl_link_can_set_bitrate(struct rtnl_link *, uint32_t);
@@ -58,7 +58,7 @@ extern int rtnl_link_can_set_data_bittiming_const(struct rtnl_link *,
extern int rtnl_link_can_get_data_bittiming(struct rtnl_link *,
struct can_bittiming *);
extern int rtnl_link_can_set_data_bittiming(struct rtnl_link *,
- struct can_bittiming *);
+ const struct can_bittiming *);
#ifdef __cplusplus
}