summaryrefslogtreecommitdiff
path: root/lib/netdev.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-07-28 13:31:49 -0700
committerBen Pfaff <blp@nicira.com>2009-07-30 16:07:13 -0700
commit80992a35775490f05da0740f285a5a9c7acb632a (patch)
tree1883bcdfb2d38c29abe429091e96345ec33d874c /lib/netdev.h
parentfd30311c8701d297f31f6dd92c628d1d9112911e (diff)
downloadopenvswitch-80992a35775490f05da0740f285a5a9c7acb632a.tar.gz
netdev: Change netdev_get_etheraddr() 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_etheraddr() to return an error code and updates all of its callers. (Currently netdev_get_etheraddr() won't ever return an error, but other future implementations might.)
Diffstat (limited to 'lib/netdev.h')
-rw-r--r--lib/netdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev.h b/lib/netdev.h
index 2106f6e37..fca86a18e 100644
--- a/lib/netdev.h
+++ b/lib/netdev.h
@@ -84,7 +84,7 @@ int netdev_drain(struct netdev *);
int netdev_send(struct netdev *, const struct ofpbuf *);
void netdev_send_wait(struct netdev *);
int netdev_set_etheraddr(struct netdev *, const uint8_t mac[6]);
-const uint8_t *netdev_get_etheraddr(const struct netdev *);
+int netdev_get_etheraddr(const struct netdev *, uint8_t mac[6]);
const char *netdev_get_name(const struct netdev *);
int netdev_get_mtu(const struct netdev *);
int netdev_get_features(struct netdev *,