diff options
author | Ben Pfaff <blp@nicira.com> | 2009-07-28 13:43:35 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2009-07-30 16:07:13 -0700 |
commit | 3d222126b4f4620dfacf41c61860772da8626e03 (patch) | |
tree | c5fa9d5aa7cac40fa85238a7ac0e74663bbc6e68 /CodingStyle | |
parent | 80992a35775490f05da0740f285a5a9c7acb632a (diff) |
netdev: Change netdev_get_mtu() to return an error code.
To make the netdev code more portable, it needs to support returning error
codes from functions that don't have them. This commit changes
netdev_get_mtu() to return an error code and updates its caller.
(Currently netdev_get_mtu() won't ever return an error, but other future
implementations might.)
Diffstat (limited to 'CodingStyle')
-rw-r--r-- | CodingStyle | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CodingStyle b/CodingStyle index 126b45a8..69df907a 100644 --- a/CodingStyle +++ b/CodingStyle @@ -168,7 +168,7 @@ prototype: Omit parameter names from function prototypes when the names do not give useful information, e.g.: - int netdev_get_mtu(const struct netdev *); + int netdev_get_mtu(const struct netdev *, int *mtup); STATEMENTS |