aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-provider.h
diff options
context:
space:
mode:
authorAndrew Evans <aevans@nicira.com>2011-01-17 15:18:38 -0800
committerAndrew Evans <aevans@nicira.com>2011-01-17 17:44:07 -0800
commit6f2f5cce6c3fa59fb73f3489ddbcb988131faec7 (patch)
tree10fad34f6becc05d196ac481e3ed58852cd6f1cf /lib/netdev-provider.h
parent23cad98c869ef5b7682f68c41db6403c1e855f5e (diff)
netdev: Make 'netdev' parameter of 'get_features()' const.
Implementations shouldn't need to modify it.
Diffstat (limited to 'lib/netdev-provider.h')
-rw-r--r--lib/netdev-provider.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h
index 9c75ccb6..58d51d7b 100644
--- a/lib/netdev-provider.h
+++ b/lib/netdev-provider.h
@@ -295,7 +295,7 @@ struct netdev_class {
*
* This function may be set to null if it would always return EOPNOTSUPP.
*/
- int (*get_features)(struct netdev *netdev,
+ int (*get_features)(const struct netdev *netdev,
uint32_t *current, uint32_t *advertised,
uint32_t *supported, uint32_t *peer);