]> git.proxmox.com Git - ovs.git/commit
netdev: Change netdev_get_in4() to return an error code.
authorBen Pfaff <blp@nicira.com>
Tue, 28 Jul 2009 20:43:52 +0000 (13:43 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 30 Jul 2009 23:07:13 +0000 (16:07 -0700)
commit6b9bd979007f5c9641ebec745cfed26b7fab645e
tree488275573e6e9d35c7e62770f0b1eba7ac13c84f
parent3d222126b4f4620dfacf41c61860772da8626e03
netdev: Change netdev_get_in4() to return an error code.

Until now, netdev_get_in4() and netdev_nodev_get_in4() have returned a
bool that represents success or failure.  This commit changes the return
value to an int that can indicate what kind of error occurred, which is
both more consistent with the rest of the netdev interfaces and more
meaningful, and updates all callers to the new interface.

(Currently netdev_get_in4() won't ever return an error, but other future
implementations might.)
extras/ezio/ovs-switchui.c
lib/netdev.c
lib/netdev.h